telemetry

package
v0.0.0-...-bd37d99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ExecutionKeyEnvironmentVariable = "SPEAKEASY_EXECUTION_ID"

Variables

This section is empty.

Functions

func EnrichEventWithEnvironmentVariables

func EnrichEventWithEnvironmentVariables(event *shared.CliEvent)

func GetApiKey

func GetApiKey() string

func NewContextWithSDK

func NewContextWithSDK(ctx context.Context, apiKey string) (context.Context, *speakeasy.Speakeasy, string, error)

func Track

func Track(ctx context.Context, exec shared.InteractionType, fn func(ctx context.Context, event *shared.CliEvent) error) error

Types

type ContextKey

type ContextKey string
const AccountTypeKey ContextKey = "speakeasy.accountType"
const SpeakeasySDKKey ContextKey = "speakeasy.SDK"
const WorkspaceIDKey ContextKey = "speakeasy.workspaceID"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL