Documentation ¶
Index ¶
- Constants
- func ClientId(ctx context.Context) string
- func NewWorkspaceEventProps(ctx context.Context, workspace *workspace.Workspace, ...) map[string]interface{}
- func ServerId(ctx context.Context) string
- func SessionId(ctx context.Context) string
- func TelemetryEnabled(ctx context.Context) bool
- type AbstractTelemetryService
- type CliEvent
- type ServerEvent
- type TelemetryContextKey
- type TelemetryService
- type TelemetrySource
Constants ¶
View Source
const CLIENT_ID_HEADER = "X-Daytona-Client-Id"
View Source
const ENABLED_HEADER = "X-Daytona-Telemetry-Enabled"
View Source
const SESSION_ID_HEADER = "X-Daytona-Session-Id"
View Source
const SOURCE_HEADER = "X-Daytona-Source"
Variables ¶
This section is empty.
Functions ¶
func NewWorkspaceEventProps ¶
func TelemetryEnabled ¶
Types ¶
type AbstractTelemetryService ¶
type AbstractTelemetryService struct { TelemetryService // contains filtered or unexported fields }
func NewAbstractTelemetryService ¶
func NewAbstractTelemetryService() *AbstractTelemetryService
func (*AbstractTelemetryService) SetCommonProps ¶
func (t *AbstractTelemetryService) SetCommonProps(properties map[string]interface{})
type ServerEvent ¶
type ServerEvent string
const ( ServerEventApiRequestStarted ServerEvent = "server_api_request_started" ServerEventApiResponseSent ServerEvent = "server_api_response_sent" // Workspace events ServerEventWorkspaceCreated ServerEvent = "server_workspace_created" ServerEventWorkspaceDestroyed ServerEvent = "server_workspace_destroyed" ServerEventWorkspaceStarted ServerEvent = "server_workspace_started" ServerEventWorkspaceStopped ServerEvent = "server_workspace_stopped" ServerEventWorkspaceCreateError ServerEvent = "server_workspace_created_error" ServerEventWorkspaceDestroyError ServerEvent = "server_workspace_destroyed_error" ServerEventWorkspaceStartError ServerEvent = "server_workspace_started_error" ServerEventWorkspaceStopError ServerEvent = "server_workspace_stopped_error" )
type TelemetryContextKey ¶
type TelemetryContextKey string
var ( ENABLED_CONTEXT_KEY TelemetryContextKey = "telemetry-enabled" CLIENT_ID_CONTEXT_KEY TelemetryContextKey = "cli-id" SESSION_ID_CONTEXT_KEY TelemetryContextKey = "session-id" SERVER_ID_CONTEXT_KEY TelemetryContextKey = "server-id" )
type TelemetryService ¶
type TelemetrySource ¶
type TelemetrySource string
var ( CLI_SOURCE TelemetrySource = "cli" CLI_PROJECT_SOURCE TelemetrySource = "cli-project" AGENT_SOURCE TelemetrySource = "agent" )
Click to show internal directories.
Click to hide internal directories.