-
Notifications
You must be signed in to change notification settings - Fork 63
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
Updating dependencies regarding issues 721 715 714 691 #846
Updating dependencies regarding issues 721 715 714 691 #846
Conversation
load-generator/build.gradle
Outdated
implementation "io.opentelemetry:opentelemetry-sdk-metrics:1.4.1-alpha" | ||
implementation "io.opentelemetry:opentelemetry-exporter-otlp:1.10.0" | ||
implementation "io.opentelemetry:opentelemetry-exporter-otlp-metrics:1.4.1-alpha" | ||
implementation "io.opentelemetry:opentelemetry-sdk-metrics:1.18.0" |
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.
Since you are use a bom, you don't need to define version for the dependencies:
https://blog.mrhaki.com/2019/04/gradle-goodness-use-bill-of-materials.html
You can just update the version of the bom:
implementation platform("io.opentelemetry:opentelemetry-bom:1.18.0")
implementation "io.opentelemetry:opentelemetry-api"
implementation "io.opentelemetry:opentelemetry-sdk-metrics"
....
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.
Thanks. updated accordingly.
.setUnit("one") | ||
.build(); | ||
|
||
meter.gaugeBuilder(API_LATENCY_METRIC) |
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.
Maybe you can use a histogram to record latency instead of a gauge: https://aws-otel.github.io/docs/getting-started/java-sdk/trace-manual-instr#creating-metrics
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.
thanks. as discussed keeping Gauge for now.
apiBytesSentCounter | ||
.add(100, Labels.of(DIMENSION_API_NAME, API_NAME, DIMENSION_STATUS_CODE, "200")); | ||
.add(10, METRIC_ATTRIBUTES); |
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.
.add(10, METRIC_ATTRIBUTES); | |
.add(10, METRIC_ATTRIBUTES); |
Why did you change the value being added? Will this affect the tests in any way?
Description:
This PR is to resolve issue #736.
Completed are #721, #715, #691, #714.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.