mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 03:24:42 -07:00
fix(core): append correct OTLP paths for HTTP exporters (#16836)
This commit is contained in:
committed by
GitHub
parent
1a7d4184cd
commit
7d31d5f4ec
@@ -113,13 +113,13 @@ describe('Telemetry SDK', () => {
|
||||
await initializeTelemetry(mockConfig);
|
||||
|
||||
expect(OTLPTraceExporterHttp).toHaveBeenCalledWith({
|
||||
url: 'http://localhost:4318/',
|
||||
url: 'http://localhost:4318/v1/traces',
|
||||
});
|
||||
expect(OTLPLogExporterHttp).toHaveBeenCalledWith({
|
||||
url: 'http://localhost:4318/',
|
||||
url: 'http://localhost:4318/v1/logs',
|
||||
});
|
||||
expect(OTLPMetricExporterHttp).toHaveBeenCalledWith({
|
||||
url: 'http://localhost:4318/',
|
||||
url: 'http://localhost:4318/v1/metrics',
|
||||
});
|
||||
expect(NodeSDK.prototype.start).toHaveBeenCalled();
|
||||
});
|
||||
@@ -141,7 +141,7 @@ describe('Telemetry SDK', () => {
|
||||
);
|
||||
await initializeTelemetry(mockConfig);
|
||||
expect(OTLPTraceExporterHttp).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ url: 'https://my-collector.com/' }),
|
||||
expect.objectContaining({ url: 'https://my-collector.com/v1/traces' }),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user