Skip to content

Commit 7f84029

Browse files
Merge pull request #24 from digma-ai/fix/service-name
Add serviceName to the span data
2 parents fcf0d37 + 080a759 commit 7f84029

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/jaeger-ui/src/utils/getSpanDataForDigma.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Span } from '../types/trace';
33
interface IDigmaSpanData {
44
id: string;
55
name: string;
6+
serviceName: string;
67
instrumentationLibrary?: string;
78
function?: string;
89
namespace?: string;
@@ -11,7 +12,7 @@ interface IDigmaSpanData {
1112
}
1213

1314
const getSpanDataForDigma = (span: Span): IDigmaSpanData => {
14-
const tagsToGet: Omit<IDigmaSpanData, 'id' | 'name'> = {
15+
const tagsToGet: Omit<IDigmaSpanData, 'id' | 'name' | 'serviceName'> = {
1516
instrumentationLibrary: 'otel.library.name',
1617
function: 'code.function',
1718
namespace: 'code.namespace',
@@ -28,6 +29,7 @@ const getSpanDataForDigma = (span: Span): IDigmaSpanData => {
2829
...tagsValues,
2930
id: span.spanID,
3031
name: span.operationName,
32+
serviceName: span.process.serviceName,
3133
};
3234
};
3335

0 commit comments

Comments
 (0)