Skip to content

Conversation

@dprotaso
Copy link
Member

@dprotaso dprotaso commented Sep 3, 2025

  • bump OTel deps
  • bump OTel semconv to v1.37.0
  • Use OTel TranslationStrategy options for prometheus

The default strategy remains the same UnderscoreEscapingWithSuffixes - it is just explicit now

Fixes: #3224

Note: I don't plan on cherry-picking this back to our 1.19 release branch

@knative-prow knative-prow bot requested review from Cali0707 and aslom September 3, 2025 14:54
@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 3, 2025
@dprotaso
Copy link
Member Author

dprotaso commented Sep 3, 2025

cc @ywwg @dashpole - for a sanity check

@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.07%. Comparing base (c3062ae) to head (d5d2739).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3245      +/-   ##
==========================================
+ Coverage   75.04%   75.07%   +0.02%     
==========================================
  Files         187      187              
  Lines       10250    10249       -1     
==========================================
+ Hits         7692     7694       +2     
+ Misses       2318     2316       -2     
+ Partials      240      239       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dprotaso
Copy link
Member Author

dprotaso commented Sep 3, 2025

/hold for reviews

@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 3, 2025
func buildPrometheus(_ context.Context, cfg Config) (sdkmetric.Reader, shutdownFunc, error) {
r, err := otelprom.New()
r, err := otelprom.New(
otelprom.WithTranslationStrategy(otlptranslator.UnderscoreEscapingWithSuffixes),
Copy link

Choose a reason for hiding this comment

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

This looks great. Would it be possible to make it configurable in the future? We do want to enable users across the ecosystem to use otel-native names if they so choose.

Copy link
Member Author

Choose a reason for hiding this comment

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

We do want to enable users across the ecosystem to use otel-native names if they so choose.

I think for now I'll leave this as the default for prom pull. If we get requests we can add other the strategies. Users can still push OTel metric names

@knative-prow
Copy link

knative-prow bot commented Sep 3, 2025

@ywwg: changing LGTM is restricted to collaborators

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 8, 2025
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 7, 2025
Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 7, 2025
@knative-prow
Copy link

knative-prow bot commented Oct 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, dprotaso, ywwg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dprotaso
Copy link
Member Author

dprotaso commented Oct 7, 2025

/hold cancel

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 7, 2025
@knative-prow knative-prow bot merged commit 72b164e into knative:main Oct 7, 2025
37 checks passed
@dprotaso dprotaso deleted the bump-otel-deps branch October 7, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

knative 1.19 links against interim / broken release of otel-go SDK

4 participants