Versions in this module Expand all Collapse all v0 v0.1.0 Sep 17, 2026 Changes in this version + const SDKName + const SDKVersion + const TruncatedMarker + func ClampString(value string, maxLength int) string + func HTTPMiddleware(next http.Handler) http.Handler + func MakeIngestPath(appID string) string + func NewMiddleware(recorder *Recorder, opts Options) mcp.Middleware + func ParseAppID(apiKey string) string + func TruncateValue(value any, maxLength int) any + type EventBatch struct + AppID string + Events []*RequestEvent + Release string + SDK SDKInfo + type Options struct + APIKey string + DisableHeaderCapture bool + DisableParamCapture bool + DisableResultCapture bool + FlushInterval time.Duration + GetUser func(ctx context.Context, req mcp.Request) *RecordedUser + HTTPClient *http.Client + MaxBatchSize int + MaxValueLength int + OnError func(err error) + Recorder *Recorder + RedactHeaders []string + Release string + SanitizeEvent func(event *RequestEvent) *RequestEvent + ServerURL string + UploadTimeout time.Duration + type RecordedClient struct + Name string + Version string + type RecordedResult struct + IsError bool + Value any + type RecordedUser struct + Anonymous bool + Email string + ID string + Name string + Traits map[string]string + type Recorder struct + func Instrument(server *mcp.Server, opts Options) *Recorder + func NewRecorder(opts Options) *Recorder + func (r *Recorder) AppID() string + func (r *Recorder) Enqueue(event *RequestEvent) + func (r *Recorder) Flush() + func (r *Recorder) InstanceID() string + func (r *Recorder) NextSeq() int64 + func (r *Recorder) Shutdown(ctx context.Context) error + type RequestEvent struct + AuthHash string + Baggage string + Client *RecordedClient + DurationMs int64 + ErrorCode int64 + ErrorMessage string + ErrorName string + Headers map[string]string + IPAddress string + InstanceID string + Method string + OAuthClientID string + Params any + ProtocolVersion string + RequestID any + Result *RecordedResult + Seq int64 + ServerURL string + StartTime int64 + Target string + Traceparent string + Tracestate string + Type string + User *RecordedUser + UserAgent string + type SDKInfo struct + Name string + Version string