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

Updating dependencies regarding issues 721 715 714 691 #846

Conversation

PaurushGarg
Copy link
Member

@PaurushGarg PaurushGarg commented Sep 22, 2022

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.

@PaurushGarg PaurushGarg requested a review from a team as a code owner September 22, 2022 18:51
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"
Copy link
Member

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"
....

Copy link
Member Author

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)
Copy link
Member

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

Copy link
Member Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.add(10, METRIC_ATTRIBUTES);
.add(10, METRIC_ATTRIBUTES);

Why did you change the value being added? Will this affect the tests in any way?

@bryan-aguilar bryan-aguilar merged commit bcc3938 into aws-observability:terraform Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants