For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
  • Python SDK
    • Overview
  • Go SDK
      • Analytics
      • APIKeys
      • Byok
      • Chat
      • Credits
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
        • Models
        • CreateObservabilityDestinationRequest
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Fields
Go SDKAPI ReferenceModels

CreateObservabilityDestinationRequest - Go SDK

CreateObservabilityDestinationRequest type definition
Was this page helpful?
Previous

OAuth - Go SDK

OAuth method reference
Next
Built with

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
APIKeyHashesoptionalnullable.OptionalNullable[[]string]➖Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. null or omitted means all keys. Must contain at least one hash if provided.<nil>
Configmap[string]any✔️Provider-specific configuration. The shape depends on type and is validated server-side.{"baseUrl": "https://us.cloud.langfuse.com","publicKey": "pk-l...EfGh","secretKey": "sk-l...AbCd"}
Enabled*bool➖Whether this destination should be enabled immediately.true
FilterRulesoptionalnullable.OptionalNullable[components.ObservabilityFilterRulesConfig]➖Optional structured filter rules controlling which events are forwarded.<nil>
Namestring✔️Human-readable name for the destination.Production Langfuse
PrivacyMode*bool➖When true, request/response bodies are not forwarded — only metadata.false
SamplingRate*float64➖Sampling rate between 0 and 1 (1 = 100%).1
Typecomponents.CreateObservabilityDestinationRequestType✔️The destination type. Only stable destination types are accepted.langfuse
WorkspaceID*string➖Optional workspace ID. Defaults to the authenticated entity’s default workspace.550e8400-e29b-41d4-a716-446655440000