-
Notifications
You must be signed in to change notification settings - Fork 964
profiles: add JFR data export example #8207
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| plugins { | ||
| id("otel.java-conventions") | ||
| // id("otel.publish-conventions") | ||
| } | ||
|
|
||
| description = "OpenTelemetry - Profiles SDK" | ||
| otelJava.moduleName.set("io.opentelemetry.sdkprofiles") | ||
|
|
||
| tasks { | ||
| // this module uses the jdk.jfr.consumer API, which was backported into 1.8 but is '@since 9' | ||
| // and therefore a bit of a pain to get gradle to compile against... | ||
| compileJava { | ||
| sourceCompatibility = "1.8" | ||
| targetCompatibility = "1.8" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: I need to take a closer look at this. Why does it work? Is there a more idiomatic way to achieve? |
||
| options.release.set(null as Int?) | ||
| } | ||
| compileTestJava { | ||
| sourceCompatibility = "1.8" | ||
| targetCompatibility = "1.8" | ||
| options.release.set(null as Int?) | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| api(project(":sdk:common")) | ||
|
|
||
| annotationProcessor("com.google.auto.value:auto-value") | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| package io.opentelemetry.exporter.otlp.profiles; | ||
| package io.opentelemetry.sdk.profiles; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Convention for the classes/interfaces representing the in-memory data model is to put them in See metrics for a reference: https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/data |
||
|
|
||
| import java.util.List; | ||
| import javax.annotation.concurrent.Immutable; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.