Skip to content

Commit

Permalink
add TELEMETRY_SDK_VERSION to profiling payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
seemk committed Dec 12, 2023
1 parent bbc9a1a commit d0797f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/profiling/OTLPProfilingExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import * as path from 'path';
import { CpuProfile, HeapProfile, ProfilingExporter } from './types';
import { diag } from '@opentelemetry/api';
import { Resource } from '@opentelemetry/resources';
import { VERSION } from '@opentelemetry/core';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import {
parseEndpoint,
Expand Down Expand Up @@ -104,6 +105,7 @@ export class OTLPProfilingExporter implements ProfilingExporter {

const resource = new Resource({
[SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]: 'node',
[SemanticResourceAttributes.TELEMETRY_SDK_VERSION]: VERSION,
}).merge(options.resource);

this._resourceAttributes = [];
Expand Down

0 comments on commit d0797f7

Please sign in to comment.