Skip to content

[Chapter 09 - MicroProfile Telemetry 2.1] Updating chapter 08 for MicroProfile Telemetry 2.1#67

Open
ttelang wants to merge 5 commits into
microprofile:mainfrom
ttelang:mp-telemetry-2.1
Open

[Chapter 09 - MicroProfile Telemetry 2.1] Updating chapter 08 for MicroProfile Telemetry 2.1#67
ttelang wants to merge 5 commits into
microprofile:mainfrom
ttelang:mp-telemetry-2.1

Conversation

@ttelang

@ttelang ttelang commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Updated sections on telemetry data exporting, metrics, and logs.

Added new content for MicroProfile Telemetry 2.1 features.

Updated sections on telemetry data exporting, metrics, and logs. Added new content for MicroProfile Telemetry 2.1 features.
ttelang added 2 commits March 31, 2026 09:37
- Clarified OpenTelemetry and MicroProfile Telemetry Integration.
- Fixing grammatical & styling issues to ensure adherence to Eclipse Foundation Writing Style Guide throughout this chapter.
@ttelang ttelang changed the title Updates for MicroProfile Telemetry 2.1 [Chapter 09 - MicroProfile Telemetry 2.1] Updating chapter 08 for MicroProfile Telemetry 2.1 Apr 7, 2026
Comment thread modules/ROOT/pages/chapter09/index.adoc
ttelang added 2 commits May 17, 2026 11:27
- Replace Telemetry 1.1 dependency with MicroProfile 7.1 BOM + OpenTelemetry API 1.48.0
- Remove outdated Jaeger docker run; add LGTM stack setup section with port table, Grafana data source config, and per-signal verification steps
- Add Meter/LongCounter instrumentation to match actual PaymentService code
- Add otel.metrics.exporter and otel.logs.exporter to config (all three signals)
- Update PaymentService example to use makeCurrent(), setStatus(), addEvent(), recordException() as implemented in code/chapter09
- Remove duplicate paragraphs and redundant section
- Fix "Graphana Tempo" typo and unclosed string literal in code snippet
@ttelang

ttelang commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

@Emily-Jiang - As adviced, I have now updated the chapter to use lgtm to view Metrics, Traces and logs. Please review and merge this chapter content.

|Record structured application log events correlated with traces
|===

Because MicroProfile Telemetry is vendor-neutral, you can switch between observability backends (Jaeger, Grafana Tempo, Zipkin, commercial APM tools) without changing application code.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Jaeger, Tempo and Zipkin are all tracing backends. Since we mentioned logs, traces and metrics. We should mention observability backends that accept all 3 signals. For example, Grafana Cloud, Grafana LGTM, or Datadog, etc.

<6> `recordException` captures the exception stack trace inside the span for trace-based debugging.
<7> Always end the span in `finally` to guarantee trace completeness even on exceptions.

== Types of Telemetry

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Types of instrumentation?

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