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

Option to export logback code attributes #2518

Merged
merged 7 commits into from Sep 16, 2022
Merged

Option to export logback code attributes #2518

merged 7 commits into from Sep 16, 2022

Conversation

jeanbisutti
Copy link
Member

This PR is part of the implementation of #2477.

The OTel code attributes will be available for Logback in the next otel-java-instrumentation release.

This PR aims at exporting the related metrics.

@jeanbisutti jeanbisutti marked this pull request as draft September 14, 2022 10:59
@jeanbisutti
Copy link
Member Author

@trask @heyams It remains the test part, depending on the next otel-java-instrumentation release. First feedbacks are welcome.

@jeanbisutti
Copy link
Member Author

The metrics are those used on the .net side.

@trask
Copy link
Member

trask commented Sep 14, 2022

Doc could be new section right above https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#logginglevel

@trask trask added this to the 3.4.0 milestone Sep 14, 2022
@trask trask changed the title Export code metrics Option to export logback code attributes Sep 14, 2022
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

go ahead and rebase on top of #2509 so you can run tests

@@ -216,6 +216,7 @@ public static class JdbcMasking {

public static class LoggingInstrumentation {
public String level = "INFO";
public boolean captureCodeAttributes;
Copy link
Member

Choose a reason for hiding this comment

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

it may be good to put it under logback-specific preview configuration, until we support across all logging instrumentations, e.g.

{
  "preview": {
    "captureLogbackCodeAttributes": true
  }
}

@jeanbisutti
Copy link
Member Author

go ahead and rebase on top of #2509 so you can run tests

Done

@jeanbisutti jeanbisutti marked this pull request as ready for review September 15, 2022 12:31
@trask trask changed the base branch from main to update-to-otel-1.18.0 September 15, 2022 15:40
@trask
Copy link
Member

trask commented Sep 15, 2022

I changed the base branch for this PR to the 1.18.0 PR temporarily to make it easier to review

Base automatically changed from update-to-otel-1.18.0 to main September 16, 2022 00:47
@jeanbisutti jeanbisutti merged commit f3bca04 into main Sep 16, 2022
@jeanbisutti jeanbisutti deleted the 2477-logging branch September 16, 2022 08:13
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.

None yet

2 participants