Skip to content

Add declarative configuration docs for Spring Boot starter#9448

Open
zeitlinger wants to merge 7 commits intoopen-telemetry:mainfrom
zeitlinger:fix/java-agent-declarative-config-updates
Open

Add declarative configuration docs for Spring Boot starter#9448
zeitlinger wants to merge 7 commits intoopen-telemetry:mainfrom
zeitlinger:fix/java-agent-declarative-config-updates

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

@zeitlinger zeitlinger commented Mar 18, 2026

Summary

  • New declarative-configuration.md page for the Spring Boot starter covering getting started, mapping rules, differences from agent DC, env var overrides, and duration format
  • New programmatic-configuration.md page (extracted from sdk-configuration.md) with a warning that AutoConfigurationCustomizerProvider doesn't work with DC
  • DC flavor tabs on out-of-the-box-instrumentation, sdk-configuration, additional-instrumentations, and other-spring-autoconfig pages
  • DC note on annotations page for enable/disable mapping
  • Updated agent DC page: removed stale "Spring Boot starter limitations" section, added cross-link
  • Mentioned DC as a configuration option in _index.md

Follow-up

Automatic converter: #9456

Test plan

  • Hugo builds without errors (npm run serve)
  • New page renders at /docs/zero-code/java/spring-boot-starter/declarative-configuration/
  • Tabs render correctly on sibling pages
  • Agent DC page no longer mentions Spring Boot limitation
  • All internal links resolve

- New declarative-configuration.md page with getting started, mapping rules,
  differences from agent DC, env var overrides, and duration format
- New programmatic-configuration.md page (extracted from sdk-configuration.md)
  with warning that AutoConfigurationCustomizerProvider doesn't work with DC
- DC flavor tabs on out-of-the-box-instrumentation, sdk-configuration,
  additional-instrumentations, and other-spring-autoconfig pages
- DC note on annotations page for enable/disable mapping
- Update agent DC page: remove stale Spring Boot limitation, add cross-link
- Mention DC as a configuration option in _index.md
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@otelbot-docs otelbot-docs bot requested review from a team March 18, 2026 17:59
@otelbot-docs otelbot-docs bot added the missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer label Mar 18, 2026
@otelbot-docs otelbot-docs bot added the missing:sig-approval Co-owning SIG didn't provide an approval label Mar 18, 2026
…ty paths

- Convert non-DC tab property tables to application.yaml style
- Fix DC property paths: add /development suffix, correct db-statement-sanitizer mapping
- Add step 4 to default algorithm about /development suffix
- Move db-statement-sanitizer to special mappings table
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
- Run prettier on changed files
- Add Dotel to cSpell ignore list
- Run fix:dict for page-local word lists
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
| System property | Type | Default | Description |
| --------------------------------------------- | ------- | ------- | ----------------------------------------------------------------------------------------------- |
| `otel.instrumentation.log4j-appender.enabled` | Boolean | true | Enables the configuration of the Log4j OpenTelemetry appender with an `OpenTelemetry` instance. |
{{< tabpane text=true >}} {{% tab "not Declarative Configuration" %}}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm looking for a good name here.
For agent, we use "Properties" - but with spring, you can also use properties with declarative config - so I fear that this would be confusing.

@otelbot-docs otelbot-docs bot requested a review from a team March 19, 2026 11:16
@github-actions github-actions bot added the blog label Mar 19, 2026
@zeitlinger zeitlinger removed the blog label Mar 19, 2026
- Fix broken anchor link to #configure-the-exporter-programmatically
  (section moved from sdk-configuration to programmatic-configuration)
- Rename mapping table headers from "Properties" to
  "System property / env var" for clarity
- Fix pre-existing prettier issue in programmatic-configuration.md
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger force-pushed the fix/java-agent-declarative-config-updates branch from 2434a18 to 9a90c12 Compare March 19, 2026 11:19
@github-actions github-actions bot added the blog label Mar 19, 2026
Add stub heading in the zh agent DC page so that cross-links from
the zh spring-boot-starter pages resolve correctly.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
This reverts commit 3af123c.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger marked this pull request as ready for review March 19, 2026 11:45
@zeitlinger zeitlinger requested a review from a team as a code owner March 19, 2026 11:45
@zeitlinger
Copy link
Copy Markdown
Member Author

@jaydeluca please have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blog lang:zh missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer missing:sig-approval Co-owning SIG didn't provide an approval sig:java

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant