telemetry

package
v0.0.0-...-c6d71cf Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: Apache-2.0 Imports: 17 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

func TriggerPublishingEvent

func TriggerPublishingEvent(targetDirectory, result, registryName string) (string, error)

Types

type ContextKey

type ContextKey string
const AccountTypeKey ContextKey = "speakeasy.accountType"
const OrgSlugKey ContextKey = "speakeasy.orgSlug"
const SpeakeasySDKKey ContextKey = "speakeasy.SDK"
const WorkspaceIDKey ContextKey = "speakeasy.workspaceID"
const WorkspaceSlugKey ContextKey = "speakeasy.workspaceSlug"

type OIDCTokenResponse

type OIDCTokenResponse struct {
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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