Skip to content

rudderlabs/rudder-observability-kit

Repository files navigation

The Customer Data Platform for Developers

Website · Documentation · Community Slack

---

Rudder Observability Kit Monorepo

Common Labels

We want labels used for observability to be shared across all language runtimes for consistency so we are using go templates to generate the standard labels using a single labels file, templates and generator.

How to add new labels

  • Add new labels to this file
  • Run: make generate
  • Labels will be updated for each supported language.

Label Name Conventions

  • Start with lower case and use camel with alphanumeric characters
  • Examples:
    • ✅ sourceId
    • ✅ destinationId
    • ❌ SourceID
    • ❌ destination_id
  • Note: When generating key to refer label name we use snake case capital letters.
    • Example:
      • label key for name sourceId -> SOURCE_ID
      • More details refer generated constants: Go Node Python
    • This is only to refer within the code but actual name remains as you define it.

Supported Label types

  • int
  • int64
  • float32
  • float64
  • string
  • error
  • bool
  • Time
  • TODO: add support for duration