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

[tracegen] Enable OTEL debug logging #4571

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

yurishkuro
Copy link
Member

Which problem is this PR solving?

  • Unlike Jaeger Go SDK, OTEL OTLP exporter does not provide good observability into how much trace data is being produced / exported / dropped

Short description of the changes

  • Connect OTEL logger to Zap logger and allow Debug() level, which is used by OTLP exporter to log stats like this:
2023-07-06T13:05:07.688-0400	LEVEL(-8)	global/internal_logging.go:63	exporting spans	{"count": 2, "total_dropped": 0}

@yurishkuro yurishkuro requested a review from a team as a code owner July 6, 2023 17:11
@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (283bdd9) 97.04% compared to head (31d8d16) 97.05%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4571   +/-   ##
=======================================
  Coverage   97.04%   97.05%           
=======================================
  Files         301      301           
  Lines       17817    17837   +20     
=======================================
+ Hits        17291    17312   +21     
+ Misses        422      421    -1     
  Partials      104      104           
Flag Coverage Δ
unittests 97.05% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@yurishkuro yurishkuro merged commit 0b21373 into jaegertracing:main Jul 6, 2023
31 checks passed
@yurishkuro yurishkuro deleted the tracegen-debug-logger branch July 6, 2023 17:47
afzal442 pushed a commit to Cloud-Hacks/jaeger that referenced this pull request Jul 10, 2023
## Which problem is this PR solving?
- Unlike Jaeger Go SDK, OTEL OTLP exporter does not provide good
observability into how much trace data is being produced / exported /
dropped

## Short description of the changes
- Connect OTEL logger to Zap logger and allow Debug() level, which is
used by OTLP exporter to log stats like this:
```
2023-07-06T13:05:07.688-0400	LEVEL(-8)	global/internal_logging.go:63	exporting spans	{"count": 2, "total_dropped": 0}
```

Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Afzal Ansari <[email protected]>
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.

1 participant