Skip to content

Commit

Permalink
If not specifed fall back to traceEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangcodes committed Jan 16, 2025
1 parent d8a2c72 commit dd52de0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { HoneycombOptions } from './types';
import {
createHoneycombSDKLogMessage,
getTracesApiKey,
getTracesEndpoint,
isClassic,
} from './util';
import {
Expand All @@ -24,7 +25,9 @@ export function configureConsoleTraceLinkExporter(
options?: HoneycombOptions,
): SpanExporter {
const apiKey = getTracesApiKey(options);
const { authRoot, uiRoot } = getUrlRoots(options?.endpoint);
const { authRoot, uiRoot } = getUrlRoots(
options?.tracesEndpoint || getTracesEndpoint(options),
);
return new ConsoleTraceLinkExporter(
options?.serviceName,
apiKey,
Expand Down

0 comments on commit dd52de0

Please sign in to comment.