MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / get_metrics_headers

Function get_metrics_headers

agentops/sdk/core.py:130–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129 # Setup metrics with JWT provider
130 def get_metrics_headers():
131 token = jwt_provider() if jwt_provider else None
132 return {"Authorization": f"Bearer {token}"} if token else {}
133
134 metric_exporter = OTLPMetricExporter(endpoint=metrics_endpoint, headers=get_metrics_headers())
135

Callers 1

setup_telemetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…