How to setup both OpenTelemetryConfig and PrometheusConfig for metrics in the TelemetryConfig class using the Python SDK?

I need prometheus for grafana and opentelemetry for lightstep integration.
I am looking at the Runtime (telemetry = TelemetryConfig(metrics = <>))
It seems that i can only set metrics to PrometheusConfig or OpenTelemetryConfig, but not both.
Is there a way around this? Thanks.

You have to pick one, we do not support both. You can usually convert one to the other. A more advanced option is to set the metrics to a metric buffer and regularly pull off the buffer and send to as many metrics systems as you’d like.