Comments (9)
@garydgregory What's your runtime and OS?
+CC @open-telemetry/java-instrumentation-maintainers
from opentelemetry.io.
https://github.com/open-telemetry/opentelemetry.io/blob/807fd51093c8ee6b156010ae0c9a70d06cf4d150/content/en/docs/languages/java/instrumentation.md seems to have a similar sample. That sample uses ResourceAttributes.SERVICE_NAME
instead of SERVICE_NAME
also the import for ResourceAttributes
is different.
from opentelemetry.io.
I am using Java 17 on Windows 10 with Maven:
ver && java -version && mvn -version
Microsoft Windows [Version 10.0.19045.4170]
openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment Temurin-17.0.8+7 (build 17.0.8+7)
OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (build 17.0.8+7, mixed mode, sharing)
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: C:\java\apache-maven-3.9.6
Java version: 17.0.8, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-17.0.8.7-hotspot
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
My IDE is Eclipse:
Version: 2024-03 (4.31.0)
This includes Buildship (the Gradle thing that does not really work, see eclipse/buildship#1303)
from opentelemetry.io.
Both ResourceAttributes.SERVICE_NAME
and ResourceAttributes.SERVICE_VERSION
are deprecated, so what's supposed to go in these put
calls?
from opentelemetry.io.
@garydgregory with the latest semconv artifact it is io.opentelemetry.semconv.ServiceAttributes.SERVICE_NAME
from opentelemetry.io.
Hello @laurit
My dependency management section uses:
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-bom</artifactId>
<version>1.37.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Version "1.37.0" looks like the latest: https://search.maven.org/artifact/io.opentelemetry/opentelemetry-bom
My dependency section uses:
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-log4j-appender-2.17</artifactId>
<version>2.3.0-alpha</version>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp</artifactId>
</dependency>
mvn dependency:tree
says:
[INFO] +- io.opentelemetry.instrumentation:opentelemetry-log4j-appender-2.17:jar:2.3.0-alpha:compile
[INFO] | +- io.opentelemetry.instrumentation:opentelemetry-instrumentation-api:jar:2.3.0:compile
[INFO] | | +- io.opentelemetry:opentelemetry-api-incubator:jar:1.37.0-alpha:runtime
[INFO] | | +- io.opentelemetry.semconv:opentelemetry-semconv:jar:1.25.0-alpha:compile
[INFO] | | \- io.opentelemetry.semconv:opentelemetry-semconv-incubating:jar:1.25.0-alpha:compile
[INFO] | +- io.opentelemetry.instrumentation:opentelemetry-instrumentation-api-incubator:jar:2.3.0-alpha:compile
[INFO] | \- io.opentelemetry:opentelemetry-api:jar:1.37.0:compile
[INFO] | \- io.opentelemetry:opentelemetry-context:jar:1.37.0:compile
[INFO] \- io.opentelemetry:opentelemetry-exporter-otlp:jar:1.37.0:compile
[INFO] +- io.opentelemetry:opentelemetry-sdk-trace:jar:1.37.0:compile
[INFO] | \- io.opentelemetry:opentelemetry-sdk-common:jar:1.37.0:compile
[INFO] +- io.opentelemetry:opentelemetry-sdk-metrics:jar:1.37.0:compile
[INFO] +- io.opentelemetry:opentelemetry-sdk-logs:jar:1.37.0:compile
[INFO] +- io.opentelemetry:opentelemetry-exporter-otlp-common:jar:1.37.0:runtime
[INFO] | \- io.opentelemetry:opentelemetry-exporter-common:jar:1.37.0:runtime
[INFO] +- io.opentelemetry:opentelemetry-exporter-sender-okhttp:jar:1.37.0:runtime
[INFO] | \- com.squareup.okhttp3:okhttp:jar:4.12.0:runtime
[INFO] | +- com.squareup.okio:okio:jar:3.6.0:runtime
[INFO] | | \- com.squareup.okio:okio-jvm:jar:3.6.0:runtime
[INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.9.10:runtime
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.8.21:runtime
[INFO] | +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.8.21:runtime
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.8.21:runtime
[INFO] \- io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:jar:1.37.0:runtime
[INFO] \- io.opentelemetry:opentelemetry-sdk:jar:1.37.0:runtime
The class is in opentelemetry-semconv-1.25.0-alpha.jar which is the latest according to https://search.maven.org/artifact/io.opentelemetry.semconv/opentelemetry-semconv
What am I missing?
TY.
from opentelemetry.io.
@garydgregory what is the issue that you have?
from opentelemetry.io.
Hello @laurit
- Like the title of the ticket says "Exporters example does not compile", so that needs fixing.
- The offered solution uses deprecate code, so what's the supported code supposed to look like?
from opentelemetry.io.
@open-telemetry/java-approvers PTAL
from opentelemetry.io.
Related Issues (20)
- Failed to execute npm run seq HOT 14
- [CI] i18n GH action check doesn't always work
- fix supported python version for Python SDK in main page HOT 6
- Contributing guidelines should be consolidated in one place
- Spec status "Experimental" renamed to "Development": Adjust shortcodes and language statuses
- Document new version of Health Check extension
- New Blog Post: Humans of OTel - KubeCon EU HOT 2
- New Blog Post: Getting Started Survey HOT 2
- [i18n] Ensure that fallback pages have `en` lang attribute
- Page internal search shows external results HOT 4
- [i18n][design] Interpret absolute paths as locale specific
- Create blog post for KubeCon China
- Update blog policy for posts including other CNCF projects
- New Blog Post: Tips for Troubleshooting the Target Allocator HOT 2
- Documentation update: add troubleshooting tips for OpenTelemetry Operator's Target Allocator HOT 1
- Misleading link to collector from SDK examples HOT 4
- Documentation update: add troubleshooting tips for OpenTelemetry Operator's Auto-instrumentation capability
- Create documentation for running the OTel Demo on GitHub Codespaces HOT 3
- chinese character "軽装" should be "計装" HOT 2
- Documentation issue in: Building a custom collector HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry.io.