Skip to content

chore(otlp-exporter): added missing resource mapping - #2684

Merged
aryamohanan merged 4 commits into
feat-otlp-exporterfrom
chore-resource-mapping
Jul 30, 2026
Merged

chore(otlp-exporter): added missing resource mapping#2684
aryamohanan merged 4 commits into
feat-otlp-exporterfrom
chore-resource-mapping

Conversation

@aryamohanan

@aryamohanan aryamohanan commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Some resource mapping were not added earlier, added those.
Whats not included

Faas resource mapping can be handlied in a different PR

Future:

There are some rc candidates(not added in the tracer spec), can be extended later

  1. process.runtime.name/
  2. process.runtime.version

Tracer spec: https://github.ibm.com/instana/technical-documentation/blob/master/tracing/specification/otlp-exporter.md#resource-attribute-mapping

otel spec https://opentelemetry.io/docs/specs/semconv/resource/

ref https://jsw.ibm.com/browse/INSTA-100980

@aryamohanan
aryamohanan force-pushed the chore-resource-mapping branch from 6faf92e to 2d579be Compare July 30, 2026 03:32
/** @type {any} */
this._compiledSemConv = null;
/** @type {string | null} */
this._hostId = null;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_hostId is not set from anywhere to the context so remove d from here

Comment thread packages/core/src/otlpExporter/metrics/converter.js Outdated
* @param {Record<string, any>} from
* @returns {string}
*/
function getResourceKey(from) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was used only on test file, removed

Comment thread packages/core/src/otlpExporter/common/transformers/resource.js Outdated
@aryamohanan
aryamohanan marked this pull request as ready for review July 30, 2026 06:14
@aryamohanan
aryamohanan requested a review from a team as a code owner July 30, 2026 06:14
@aryamohanan aryamohanan removed the WIP label Jul 30, 2026
/**
* @param {string} nodePlatform
*/
function normalizeOsType(nodePlatform) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread packages/core/src/otlpExporter/common/transformers/resource.js Outdated
Comment thread packages/core/src/otlpExporter/common/transformers/resource.js

@kirrg001 kirrg001 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

@aryamohanan aryamohanan changed the title chore: added missing resource mapping chore(otlp-exporter): added missing resource mapping Jul 30, 2026
@aryamohanan
aryamohanan force-pushed the chore-resource-mapping branch from 0ad3f58 to b5d5deb Compare July 30, 2026 09:45
@aryamohanan
aryamohanan changed the base branch from main to feat-oltp-exporter July 30, 2026 09:45
@sonarqubecloud

Copy link
Copy Markdown

@aryamohanan
aryamohanan changed the base branch from feat-oltp-exporter to feat-otlp-exporter July 30, 2026 12:23
@aryamohanan
aryamohanan merged commit 6ece499 into feat-otlp-exporter Jul 30, 2026
3 checks passed
@aryamohanan aryamohanan mentioned this pull request Jul 30, 2026
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants