Fix incorrect default Jaeger service name in OpenTelemetry config#4784
Fix incorrect default Jaeger service name in OpenTelemetry config#4784SasinduDilshara wants to merge 2 commits intowso2:masterfrom
Conversation
Change the default value of `opentelemetry.service.name` from `WSO2-SYNAPSE` to `wso2-synapse` in `default.json` so that the service name published to Jaeger matches the lowercase filter used in the bundled Grafana dashboards. Without this fix, clicking a trace link in Grafana redirects to Jaeger with service name `wso2-synapse`, which finds no results because Jaeger received traces tagged `WSO2-SYNAPSE` (case-sensitive). Users were forced to manually retype the service name. Fixes wso2#4200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 3 minutes and 48 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughA configuration value in the default JSON settings has been updated to correct the OpenTelemetry service name from uppercase Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add the opentelemetry.service_name → synapse_properties.'opentelemetry.service.name' mapping to key-mappings.json so that the service_name set in deployment.toml is correctly propagated to synapse.properties and picked up by the OTLPTelemetryManager at runtime. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude Issue Analysis — [Issue #4200]: Incorrect Jaeger service name in Grafana dashboardsClassification
Reproducibility
Root Cause AnalysisThere are two interacting defects that together prevent the Jaeger service name from being configurable, causing the mismatch with Grafana dashboards. Defect 1 — Missing key-mapping in
|
Claude Fix Verification ReportIssue: #4200 Reproduction Steps Executed
ResultThe bug is FIXED. The configured Before fix (reported behavior): After fix (observed behavior): Evidencesynapse.properties after server startup (with patch applied):Patch detection in server log:Server startup confirmation:key-mappings.json fix:"opentelemetry.service_name": "synapse_properties.'opentelemetry.service.name'", |
Summary
opentelemetry.service.nameindistribution/src/resources/config-tool/default.jsonfromWSO2-SYNAPSEtowso2-synapse.wso2-synapse(lowercase). Since Jaeger service names are case-sensitive, the old default (WSO2-SYNAPSE) caused the Grafana → Jaeger trace link to find no matching service, forcing users to manually retype the name.Root Cause
TelemetryConstants.SERVICE_NAMEis hard-coded as"WSO2-SYNAPSE". The config-tool default was also"WSO2-SYNAPSE", but the Grafana dashboard templates ship withwso2-synapse(lowercase) as the service-name filter. Jaeger is case-sensitive, so the mismatch breaks the Grafana → Jaeger navigation.Test plan
deployment.toml(noservice_nameoverride).conf/synapse.propertiescontainsopentelemetry.service.name = wso2-synapse.opentelemetry.enable = true) and confirm spans are published to Jaeger under the service namewso2-synapse.Fixes #4200
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes