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

TS2724: "@opentelemetry/semantic-conventions" has no exported member named ATTR_DEPLOYMENT_ENVIRONMENT. #5089

Closed
mpareja-godaddy opened this issue Oct 24, 2024 · 1 comment
Labels
bug Something isn't working triage

Comments

@mpareja-godaddy
Copy link

mpareja-godaddy commented Oct 24, 2024

What happened?

Steps to Reproduce

import {SEMRESATTRS_DEPLOYMENT_ENVIRONMENT} from '@opentelemetry/semantic-conventions';

Deprecated symbol used, consult docs for better alternative
TS6385: SEMRESATTRS_DEPLOYMENT_ENVIRONMENT is deprecated.
SemanticResourceAttributes. d. ts(140, 4): The declaration was marked as deprecated here.
Name of the deployment environment (aka deployment tier).
Deprecated:
use ATTR_DEPLOYMENT_ENVIRONMENT

Then
import {ATTR_DEPLOYMENT_ENVIRONMENT} from '@opentelemetry/semantic-conventions';

TS2724: "@opentelemetry/ semantic-conventions" has no exported member named ATTR_DEPLOYMENT_ENVIRONMENT.

Expected Result

a non deprecated import

Actual Result

a Deprecated import

Additional Details

OpenTelemetry Setup Code

No response

package.json

"@opentelemetry/api": "^1.9.0",
    "@opentelemetry/auto-instrumentations-node": "^0.51.0",
    "@opentelemetry/exporter-logs-otlp-grpc": "^0.54.0",
    "@opentelemetry/exporter-metrics-otlp-grpc": "^0.54.0",
    "@opentelemetry/exporter-trace-otlp-grpc": "^0.54.0",
    "@opentelemetry/resources": "^1.27.0",
    "@opentelemetry/sdk-logs": "^0.54.0",
    "@opentelemetry/sdk-metrics": "^1.27.0",
    "@opentelemetry/sdk-node": "^0.54.0",
    "@opentelemetry/semantic-conventions": "^1.27.0",
    "@opentelemetry/winston-transport": "^0.6.0",

Relevant log output

No response

@mpareja-godaddy mpareja-godaddy added bug Something isn't working triage labels Oct 24, 2024
@pichlermarc
Copy link
Member

pichlermarc commented Oct 25, 2024

Hi @mpareja-godaddy, thanks for reaching out - I think this is a duplicate of #5025 so you can track progress there. In the meantime you can import that constant by using
import {ATTR_DEPLOYMENT_ENVIRONMENT} from '@opentelemetry/semantic-conventions/incubating';

@pichlermarc pichlermarc closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants