Skip to content

GenAI: define and document declarative configuration options #3500

@lmolkova

Description

@lmolkova

We can define configuration properties formally - this is used by declarative config.

We can also document them (in plain text for now) similarly to

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
![Development](https://img.shields.io/badge/-development-blue)
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of case-sensitive strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`.

Some common properties to define:

  • opt-in to bleeding edge is controlled with exiting ExperimentalSemconvConfig and OTEL_SEMCONV_STABILITY_OPT_IN
  • capture content
  • record spans and/or events

And maybe others in https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/util/opentelemetry-util-genai/src/opentelemetry/util/genai/environment_variables.py

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    New issues

    Status

    Need triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions