Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@opentelemetry/semantic-conventions deprecated warnings point to missing exports #5025

Closed
tmcw opened this issue Sep 27, 2024 · 9 comments · Fixed by #5166
Closed

@opentelemetry/semantic-conventions deprecated warnings point to missing exports #5025

tmcw opened this issue Sep 27, 2024 · 9 comments · Fixed by #5166
Assignees
Labels
bug Something isn't working document Documentation-related has:reproducer This bug/feature has a minimal reproducer provided pkg:semantic-conventions priority:p4 Bugs and spec inconsistencies which do not fall into a higher prioritization

Comments

@tmcw
Copy link

tmcw commented Sep 27, 2024

What happened?

Steps to Reproduce

Playground: https://www.typescriptlang.org/play/?ssl=4&ssc=1&pln=4&pc=21#code/JYWwDg9gTgLgBAKjgQwM4pjK6BmUIhwBEAAhGAKYB2MFANhSBVgJ4D0qjyNwAxgLS8IVAG7UYwYaiIBuAFBzkmbADoAygFEAsgEEAKnoBKagPoAJAwAUTAVUMAZeUqyoV+o+au2HMoA

Expected Result

If something has a deprecation message with a recommended updated strategy, that strategy should exist.

Actual Result

It doesn't.

Additional Details

OpenTelemetry Setup Code

import * as attrs from "@opentelemetry/semantic-conventions";

attrs.SEMATTRS_HTTP_URL;
attrs.ATTR_HTTP_URL;

package.json

No response

Relevant log output

No response

@tmcw tmcw added bug Something isn't working triage labels Sep 27, 2024
@pichlermarc pichlermarc added pkg:semantic-conventions document Documentation-related priority:p4 Bugs and spec inconsistencies which do not fall into a higher prioritization has:reproducer This bug/feature has a minimal reproducer provided and removed triage labels Sep 30, 2024
@pichlermarc
Copy link
Member

Hi @tmcw, thanks for reaching out.

Looks like we're missing a mention that the @opentelemetry/semantic-conventions/incubating entrypoint is where these attributes are located. We'll have to add it to the Jinja template.

@tmcw
Copy link
Author

tmcw commented Oct 3, 2024

That seems incorrect as well:

https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAKjgQwM4pjK6BmUIhwBEAAhGAKYB2MFANhSBVgJ4D0qjyNwAxgLS8IVAG7UYwYaiIBuAFChIsRCnTJM2AJJw8BYmUo16jZlHacQ3CQKGjxkqqjbAqvAK4AjdS4DmsuXLqWKgAdADKAKIAsgCCACpxAEphAPoAEgkACikAqokAMvJB2CHxSelZuQVFGqiapQmJFXHZeYVAA

SEMATTRS_HTTP_URL says to use ATTR_HTTP_URL, but then if I import from /incubating, and use ATTR_HTTP_URL, it says that it's deprecated in favor of url.full.

@Annosha
Copy link
Contributor

Annosha commented Oct 6, 2024

@pichlermarc can I work on this issue as a beginner?
I'm aiming to get familiar and contribute to opentelemetry-js code base.

@pichlermarc
Copy link
Member

@pichlermarc can I work on this issue as a beginner? I'm aiming to get familiar and contribute to opentelemetry-js code base.

@Annosha thanks for reaching out. I'd say this issue is not very beginner friendly as all of that code is auto-generated - the generation of this is rather involved with custom tooling built around the semantic-conventions repo.

@JamieDanielson
Copy link
Member

It looks in this deprecated warning we could update our deprecated message to use the actual attribute variable (ATTR_URL_FULL) vs just the attribute url.full. Same for others as well. I will take a look at this.

@JamieDanielson JamieDanielson self-assigned this Oct 23, 2024
@trentm
Copy link
Contributor

trentm commented Oct 24, 2024

SEMATTRS_HTTP_URL says to use ATTR_HTTP_URL, but then if I import from /incubating, and use ATTR_HTTP_URL, it says that it's deprecated in favor of url.full.

There are two stages of deprecation here in 1.x versions of @opentelemetry/semantic-conventions, unfortunately, because of changes to the package.

0.x

Before 1.x there was 0.x, which exported a handful of big namespace-type objects:

exports.SemanticAttributes = {
    AWS_LAMBDA_INVOKED_ARN: 'aws.lambda.invoked_arn',
    DB_SYSTEM: 'db.system',
...

I only point this out for history.

early 1.x

Starting with 1.0.0 these large namespace-type objects were turned into flat consts -- to facilitate tree-shaking for smaller bundles for web usage, mainly. Effectively:

exports.SEMATTRS_HTTP_URL = 'http.url';
...
exports.SEMRESATTRS_SERVICE_NAME = 'service.name';

later 1.x

Later 1.x did a few things (#4690):

  • update to recent version of the OTel Semantic Conventions (the JS package had been years behind);
  • Change SEMRESATTRS_ and SEMATTRS_ to just ATTR_ for attributes, and deprecated the old names
  • Generate enum values as <attribute name>_VALUE_<enum value name>
  • Generate constants for metric names with METRIC_ prefix
  • Added separate entry-points for the package: import ... from '@opentelemetry/semantic-conventions' now gets you stable semconv values (per https://github.com/open-telemetry/semantic-conventions) and import ... from '@opentelemetry/semantic-conventions/incubating' includes both the stable semconv values and experimental values (that might change, be removed, whatever)

So:

  1. SEMATTRS_HTTP_URL really was deprecated in favour of ATTR_HTTP_URL. With the subtlety that to use ATTR_HTTP_URL you now need to import it from @opentelemetry/semantic-conventions/incubating.
  2. Separately, the OTel Semantic Conventions team stabilized HTTP-related semconv. Part of that stabilization involved deprecated http.url (which is exported as ATTR_HTTP_URL from the 'incubating' entry point) in favour of url.full (which is exported as ATTR_URL_FULL from both the top-level and 'incubating' entry points).

They are two different kind of deprecations: 1. a JS package export-deprecation and 2. a semconv-deprecation.

options

First, I think we'd want to update the templates to have the ATTR_HTTP_URL deprecation message point to ATTR_URL_FULL rather than url.full. And perhaps clarify which entry point to use. I think every semconv deprecation is for a new var that is stable, so perhaps it is always the top entry point.

Second, to update the deprecation messages for SEMRESATTRS_ and SEMATTRS_ vars means we'll need to manually update the relevant files. They are no longer part of the generation -- because they are intentionally frozen.
We could either:

  1. Update those messages to point to the ATTR_... equivalent, even if it is semconv-deprecated. E.g. point SEMATTRS_HTTP_URL to ATTR_HTTP_URL. Perhaps the wording of the deprecation could make it clear that it is an "export-deprecation" (as I've called it) unrelated to semconv stabilization.
  2. Or, update those messages to point to ultimate stabilized attribute, if there is one (e.g. point SEMATTRS_HTTP_URL to ATTR_URL_FULL).

I think I'm in favour of option 1. There are two things going on here. Directing a user directly from SEMATTRS_HTTP_URL to ATTR_URL_FULL is possibly skipping some detail they should know about (e.g. the OTEL_SEMCONV_STABILITY_OPT_IN handling).

@trentm
Copy link
Contributor

trentm commented Oct 24, 2024

I was playing a bit. Take this excerpt from "semantic-conventions/src/experimental_attributes.ts":

/**
 * Deprecated, use `url.full` instead.
 *
 * @example https://www.foo.bar/search?q=OpenTelemetry#SemConv
 *
 * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
 *
 * @deprecated Replaced by `url.full`. See {@link ATTR_URL_FULL}, {@link ATTR_HTTP_TARGET}.
 */
export const ATTR_HTTP_URL = 'http.url' as const;

I added the See {@link...content.
The second link, {@link ATTR_HTTP_TARGET}, to a variable in the same file works somewhat nicely in VS Code hovertips:

Screenshot 2024-10-24 at 3 15 22 PM

However the {@link ATTR_URL_FULL} -- the one we actually want to use -- does not actually link up. At least not in the cobbled up example I have here.

Still, it might be useful for us to do this.
Note that doing so will be a heuristic. It will be having the jinja template process the Replaced by `url.full`. string (or perhaps the Deprecated, use `url.full` instead. "brief" string), pull out the backtick-quoted field, assume it is a semconv string, convert it to the ATTR_... or METRIC_... name and then emit See {@link ...}.

@trentm
Copy link
Contributor

trentm commented Oct 31, 2024

However the {@link ATTR_URL_FULL} -- the one we actually want to use -- does not actually link up. At least not in the cobbled up example I have here.

FWIW, the limitation in linking to some export in another file is discussed here: https://stackoverflow.com/questions/68611099/vscode-only-renders-jsdoc-link-to-another-file-when-symbol-is-imported

trentm added a commit to trentm/opentelemetry-js that referenced this issue Nov 14, 2024
…nstants

This updates the '@deprecated ...' message for some of the old constants
where they referred to constants that now no longer exist, because they
where themselves deprecated or removed.

This is a partial fix for open-telemetry#5025
@trentm trentm self-assigned this Nov 14, 2024
@trentm
Copy link
Contributor

trentm commented Nov 14, 2024

#5160 is a first change for this. It updates refs in @deprecated ... messages to point to constants that now actually exist. I'll have other changes after this one is merged.

newkdr added a commit to newkdr/vscode-gitlens that referenced this issue Dec 24, 2024
![snyk-top-banner](https://redirect.github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)


<h3>Snyk has created this PR to upgrade @opentelemetry/resources from
1.27.0 to 1.28.0.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **1 version** ahead of your current
version.

- The recommended version was released **a month ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>@opentelemetry/resources</b></summary>
    <ul>
      <li>
<b>1.28.0</b> - <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/releases/tag/semconv%2Fv1.28.0">2024-11-18</a></br><h2>1.28.0</h2>
<h3>🚀 (Enhancement)</h3>
<ul>
<li>feat: update semantic conventions to 1.28.0 <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5181"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5181/hovercard">#5181</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/trentm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/trentm">@ trentm</a></li>
</ul>
<h3>📚 (Refine Doc)</h3>
<ul>
<li>chore: Improve documentation on entry-points (top-level and
"incubating") and on deprecations. <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/issues/5025"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/opentelemetry-js/issues/5025/hovercard">#5025</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/trentm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/trentm">@ trentm</a></li>
</ul>
<h3>🏠 (Internal)</h3>
<ul>
<li>chore: Update the comments of some deprecated constants to point to
the currently relevant replacement constant, if any. <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5160"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5160/hovercard">#5160</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/trentm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/trentm">@ trentm</a></li>
<li>chore: Minor improvements to formatting of comments. <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5100"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5100/hovercard">#5100</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/trentm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/trentm">@ trentm</a></li>
</ul>
      </li>
      <li>
<b>1.27.0</b> - <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/releases/tag/v1.27.0">2024-10-23</a></br><h2>1.27.0</h2>
<h3>🚀 (Enhancement)</h3>
<ul>
<li>feat: add processors for adding session.id attribute to spans and
logs <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/4972"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/4972/hovercard">#4972</a></li>
</ul>
<h3>🐛 (Bug Fix)</h3>
<ul>
<li>fix(sdk-trace-base): avoid keeping non-string
<code>status.message</code> on <code>Span#setStatus()</code> <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/4999"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/4999/hovercard">#4999</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/pichlermarc/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/pichlermarc">@ pichlermarc</a></li>
<li>fix(sdk-metrics): Add missing catch and handle error in promise of
<code>PeriodicExportingMetricReader</code> <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5006"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5006/hovercard">#5006</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/jj22ee/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/jj22ee">@ jj22ee</a></li>
<li>fix(opentelemetry-core): confusing log extract of composite
propagator <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5017"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5017/hovercard">#5017</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/rv2673/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/rv2673">@ rv2673</a></li>
<li>fix(propagator-aws-xray-*): move propagators back to contrib
repository <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/4966"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/4966/hovercard">#4966</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/pichlermarc/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/pichlermarc">@ pichlermarc</a>
<ul>
<li>The <a
href="https://redirect.github.com/open-telemetry/opentelemetry-specification/blob/6672dbc97ddeb34f36c020a0f0a30323c8bc4d95/specification/context/api-propagators.md?plain=1#L354-L356">specification</a>
prohibits hosting these packages in the core repository</li>
<li><code>@ opentelemetry/propagator-aws-xray</code> is now located in
<a
href="https://redirect.github.com/open-telemetry/opentelemetry-js-contrib">open-telemetry/opentelemetry-js-contrib</a></li>
<li><code>@ opentelemetry/propagator-aws-xray-lambda</code> is now
located in <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js-contrib">open-telemetry/opentelemetry-js-contrib</a></li>
</ul>
</li>
</ul>
<h3>🏠 (Internal)</h3>
<ul>
<li>deps: set <code>@ opentelemetry/api</code> dependency min version to
1.3.0 in <code>examples</code>, <code>experimental/packages</code>,
<code>integration-tests</code> and <code>selenium-tests</code><br>
<a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/4992"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/4992/hovercard">#4992</a></li>
<li>refactor(sdk-metrics): replace <code>MetricsAttributes</code> with
<code>Attributes</code> <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5021"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5021/hovercard">#5021</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/david-luna/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/david-luna">@ david-luna</a></li>
<li>refactor(instrumentation-http): replace <code>SpanAttributes</code>
and <code>MetricsAttributes</code> with <code>Attributes</code> <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5023"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5023/hovercard">#5023</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/david-luna/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/david-luna">@ david-luna</a></li>
<li>chore(exporter-zipkin): remove usages of Span constructor <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5030"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5030/hovercard">#5030</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/david-luna/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/david-luna">@ david-luna</a></li>
<li>test(instrumentation-http): remove usages of <code>new Span</code>
in tests <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5035"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5035/hovercard">#5035</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/david-luna/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/david-luna">@ david-luna</a></li>
</ul>
      </li>
    </ul>
from <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/releases">@opentelemetry/resources
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI3NmZlY2E0OC0xYzFkLTRiOTItOGMzNC1lYmNkNzM3ODg3MTciLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6Ijc2ZmVjYTQ4LTFjMWQtNGI5Mi04YzM0LWViY2Q3Mzc4ODcxNyJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17/settings/integration?pkg&#x3D;@opentelemetry/resources&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"@opentelemetry/resources","from":"1.27.0","to":"1.28.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"76feca48-1c1d-4b92-8c34-ebcd73788717","prPublicId":"76feca48-1c1d-4b92-8c34-ebcd73788717","packageManager":"npm","priorityScoreList":[],"projectPublicId":"12a8a5f5-3e19-438c-8280-eb8f4ee06d17","projectUrl":"https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":1,"publishedDate":"2024-11-18T10:41:43.016Z"},"vulns":[]}'
newkdr added a commit to newkdr/vscode-gitlens that referenced this issue Dec 24, 2024
…8.0 (#12)

![snyk-top-banner](https://redirect.github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)


<h3>Snyk has created this PR to upgrade
@opentelemetry/semantic-conventions from 1.27.0 to 1.28.0.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **1 version** ahead of your current
version.

- The recommended version was released **a month ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
<summary>Package name:
<b>@opentelemetry/semantic-conventions</b></summary>
    <ul>
      <li>
<b>1.28.0</b> - <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/releases/tag/semconv%2Fv1.28.0">2024-11-20</a></br><h2>1.28.0</h2>
<h3>🚀 (Enhancement)</h3>
<ul>
<li>feat: update semantic conventions to 1.28.0 <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5181"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5181/hovercard">#5181</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/trentm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/trentm">@ trentm</a></li>
</ul>
<h3>📚 (Refine Doc)</h3>
<ul>
<li>chore: Improve documentation on entry-points (top-level and
"incubating") and on deprecations. <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/issues/5025"
data-hovercard-type="issue"
data-hovercard-url="/open-telemetry/opentelemetry-js/issues/5025/hovercard">#5025</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/trentm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/trentm">@ trentm</a></li>
</ul>
<h3>🏠 (Internal)</h3>
<ul>
<li>chore: Update the comments of some deprecated constants to point to
the currently relevant replacement constant, if any. <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5160"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5160/hovercard">#5160</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/trentm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/trentm">@ trentm</a></li>
<li>chore: Minor improvements to formatting of comments. <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5100"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5100/hovercard">#5100</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/trentm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/trentm">@ trentm</a></li>
</ul>
      </li>
      <li>
<b>1.27.0</b> - <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/releases/tag/v1.27.0">2024-08-28</a></br><h2>1.27.0</h2>
<h3>🚀 (Enhancement)</h3>
<ul>
<li>feat: add processors for adding session.id attribute to spans and
logs <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/4972"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/4972/hovercard">#4972</a></li>
</ul>
<h3>🐛 (Bug Fix)</h3>
<ul>
<li>fix(sdk-trace-base): avoid keeping non-string
<code>status.message</code> on <code>Span#setStatus()</code> <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/4999"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/4999/hovercard">#4999</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/pichlermarc/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/pichlermarc">@ pichlermarc</a></li>
<li>fix(sdk-metrics): Add missing catch and handle error in promise of
<code>PeriodicExportingMetricReader</code> <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5006"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5006/hovercard">#5006</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/jj22ee/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/jj22ee">@ jj22ee</a></li>
<li>fix(opentelemetry-core): confusing log extract of composite
propagator <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5017"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5017/hovercard">#5017</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/rv2673/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/rv2673">@ rv2673</a></li>
<li>fix(propagator-aws-xray-*): move propagators back to contrib
repository <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/4966"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/4966/hovercard">#4966</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/pichlermarc/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/pichlermarc">@ pichlermarc</a>
<ul>
<li>The <a
href="https://redirect.github.com/open-telemetry/opentelemetry-specification/blob/6672dbc97ddeb34f36c020a0f0a30323c8bc4d95/specification/context/api-propagators.md?plain=1#L354-L356">specification</a>
prohibits hosting these packages in the core repository</li>
<li><code>@ opentelemetry/propagator-aws-xray</code> is now located in
<a
href="https://redirect.github.com/open-telemetry/opentelemetry-js-contrib">open-telemetry/opentelemetry-js-contrib</a></li>
<li><code>@ opentelemetry/propagator-aws-xray-lambda</code> is now
located in <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js-contrib">open-telemetry/opentelemetry-js-contrib</a></li>
</ul>
</li>
</ul>
<h3>🏠 (Internal)</h3>
<ul>
<li>deps: set <code>@ opentelemetry/api</code> dependency min version to
1.3.0 in <code>examples</code>, <code>experimental/packages</code>,
<code>integration-tests</code> and <code>selenium-tests</code><br>
<a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/4992"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/4992/hovercard">#4992</a></li>
<li>refactor(sdk-metrics): replace <code>MetricsAttributes</code> with
<code>Attributes</code> <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5021"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5021/hovercard">#5021</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/david-luna/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/david-luna">@ david-luna</a></li>
<li>refactor(instrumentation-http): replace <code>SpanAttributes</code>
and <code>MetricsAttributes</code> with <code>Attributes</code> <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5023"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5023/hovercard">#5023</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/david-luna/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/david-luna">@ david-luna</a></li>
<li>chore(exporter-zipkin): remove usages of Span constructor <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5030"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5030/hovercard">#5030</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/david-luna/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/david-luna">@ david-luna</a></li>
<li>test(instrumentation-http): remove usages of <code>new Span</code>
in tests <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/5035"
data-hovercard-type="pull_request"
data-hovercard-url="/open-telemetry/opentelemetry-js/pull/5035/hovercard">#5035</a>
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/david-luna/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/david-luna">@ david-luna</a></li>
</ul>
      </li>
    </ul>
from <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/releases">@opentelemetry/semantic-conventions
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiIzMTNmOWJhMy0yZmY0LTQ3Y2YtYjQ0Yi05YTg5NjY4NTFkMTgiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjMxM2Y5YmEzLTJmZjQtNDdjZi1iNDRiLTlhODk2Njg1MWQxOCJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17/settings/integration?pkg&#x3D;@opentelemetry/semantic-conventions&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"@opentelemetry/semantic-conventions","from":"1.27.0","to":"1.28.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"313f9ba3-2ff4-47cf-b44b-9a8966851d18","prPublicId":"313f9ba3-2ff4-47cf-b44b-9a8966851d18","packageManager":"npm","priorityScoreList":[],"projectPublicId":"12a8a5f5-3e19-438c-8280-eb8f4ee06d17","projectUrl":"https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":1,"publishedDate":"2024-11-20T20:31:21.818Z"},"vulns":[]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working document Documentation-related has:reproducer This bug/feature has a minimal reproducer provided pkg:semantic-conventions priority:p4 Bugs and spec inconsistencies which do not fall into a higher prioritization
Projects
None yet
5 participants