{"modulePath":"github.com/serverless/console/go/packages/slslambda","version":"v0.0.0-20231012003825-435fcaaa62a5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package slslambda\n\n## Functions\n\n```go\nfunc AddTag(ctx context.Context, key, value string)\n```\n\n```go\nfunc AddTags(ctx context.Context, tags map[string]string)\n```\n\n```go\nfunc CaptureError(ctx context.Context, err error)\n```\n\n```go\nfunc CaptureErrorWithOptions(ctx context.Context, err error, options EventOptions)\n```\n\n```go\nfunc CaptureWarning(ctx context.Context, msg string)\n```\n\n```go\nfunc CaptureWarningWithOptions(ctx context.Context, msg string, options EventOptions)\n```\n\n```go\nfunc Close(ctx context.Context)\n```\n\n```go\nfunc Start(handlerFunc any, options ...Option)\n```\nStart starts handler function with Serverless instrumentation.\n\n```go\nfunc WithSpan(ctx context.Context, name string) context.Context\n```\n\n## Types\n\n```go\ntype EventOptions struct {\n\tCustomFingerprint *string\n\tCustomTags        map[string]string\n}\n```\n\n```go\ntype Option = func(c *wrapper)\n```\nOption is used to customize the instrumentation.\n\n```go\nfunc WithEnvironment(env string) Option\n```\nWithEnvironment allows for associating custom environment with telemetry data sent.\n\n","path":"github.com/serverless/console/go/packages/slslambda","name":"slslambda","synopsis":"","isRedistributable":true}
