File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { MeterProvider , PeriodicExportingMetricReader } from "@opentelemetry/sdk-metrics" ;
1+ import {
2+ AggregationTemporality ,
3+ MeterProvider ,
4+ PeriodicExportingMetricReader ,
5+ } from "@opentelemetry/sdk-metrics" ;
26import { resourceFromAttributes } from "@opentelemetry/resources" ;
37import type { Logger } from "../logging" ;
48import { type MetricSink } from "./types" ;
@@ -55,6 +59,10 @@ export class OtelHistogramSink implements MetricSink {
5559 url : this . endpoint . endsWith ( "/v1/metrics" )
5660 ? this . endpoint
5761 : `${ this . endpoint } /v1/metrics` ,
62+ headers : {
63+ "X-Installation-Id" : config . resourceAttributes [ "agentcore-cli.installation_id" ] ,
64+ } ,
65+ temporalityPreference : AggregationTemporality . DELTA ,
5866 } ) ,
5967 exportIntervalMillis : config . exportIntervalMs ?? 5_000 ,
6068 } ) ,
You can’t perform that action at this time.
0 commit comments