Update dependency @opentelemetry/semantic-conventions to v1 (#40377)

* Update dependency @opentelemetry/semantic-conventions to v1

* chore(tempo): update import to match semantic-conventions api changes

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
renovate[bot]
2021-10-14 11:02:05 +02:00
committed by GitHub
parent 31d50f931d
commit 5664ffd094
3 changed files with 11 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import {
} from '@grafana/data';
import { SpanKind, SpanStatus, SpanStatusCode } from '@opentelemetry/api';
import { collectorTypes } from '@opentelemetry/exporter-collector';
import { ResourceAttributes } from '@opentelemetry/semantic-conventions';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { createGraphFrames } from './graphTransform';
export function createTableFrame(
@@ -161,7 +161,7 @@ function resourceToProcess(resource: collectorTypes.opentelemetryProto.resource.
}
for (const attribute of resource.attributes) {
if (attribute.key === ResourceAttributes.SERVICE_NAME) {
if (attribute.key === SemanticResourceAttributes.SERVICE_NAME) {
serviceName = attribute.value.stringValue || serviceName;
}
serviceTags.push({ key: attribute.key, value: getAttributeValue(attribute.value) });