Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
factory.go1.12 kB
package spanner import ( "context" "log/slog" "go.opentelemetry.io/otel/trace" "go.uber.org/fx" "github.com/Southclaws/storyden/internal/infrastructure/instrumentation/kv" "github.com/Southclaws/storyden/internal/infrastructure/instrumentation/tracing" ) type Builder interface { Build() Instrumentation } type Instrumentation interface { Instrument(ctx context.Context, a ...kv.Attr) (context.Context, Span) InstrumentNamed(ctx context.Context, name string, a ...kv.Attr) (context.Context, Span) } type Span interface { End() Annotate(a ...kv.Attr) context.Context Event(name string, a ...kv.Attr) Logger() *slog.Logger Wrap(err error, msg string, a ...kv.Attr) error } func TraceID(ctx context.Context) string { return trace.SpanFromContext(ctx).SpanContext().TraceID().String() } func SpanID(ctx context.Context) string { return trace.SpanFromContext(ctx).SpanContext().SpanID().String() } func New(lc fx.Lifecycle, lg *slog.Logger, tf tracing.Factory) Builder { return &service{ lc: lc, tf: tf, lg: lg, } } type service struct { lc fx.Lifecycle lg *slog.Logger tf tracing.Factory }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server