Index of every page on this site: llms.txt
All skills
github avatar

/spring-observability

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Add and review observability in Spring Boot 3/4 apps: Actuator exposure and health probes, Micrometer metrics, Observation API, OpenTelemetry tracing and OTLP/Prometheus export, structured logging with correlation ids, and safe use of heapdump/threaddump. Use when instrumenting, monitoring or troubleshooting a Spring Boot service.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/spring-observability

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referenceslogging.md

≈441 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Logging

Structured logging (Boot 3.4+)

Built in; no extra dependency for ECS, Logstash and GELF formats.

logging:
  structured:
    format:
      console: ecs        # also: logstash, gelf
      file: ecs
    ecs:
      service:
        name: orders
        version: 1.4.0
        environment: prod
  • Customize JSON with logging.structured.json.include/exclude/rename/add.*. For code-based customization, implement StructuredLoggingJsonMembersCustomizer and register its fully qualified class name with logging.structured.json.customizer, or list the implementation under org.springframework.boot.logging.structured.StructuredLoggingJsonMembersCustomizer in META-INF/spring.factories. A Spring @Bean alone is not discovered: logging initializes before the application context.
  • Custom format: implement StructuredLogFormatter<E> and set logging.structured.format.console to its class name.
  • Use plain text locally and JSON in production profiles (application-prod.yml).
  • Stack trace shaping: logging.structured.json.stacktrace.*.

Correlation ids

  • With tracing on the classpath, traceId and spanId are put in the MDC and appear in the default log pattern and in structured output.
  • Without tracing, set a correlation id yourself (servlet filter putting a header value into MDC, cleared in finally).
  • Customize the pattern: logging.pattern.correlation=[%X{traceId:-},%X{spanId:-}] ; include with logging.include-application-name/logging.include-application-group (Boot 3.4+).
  • Propagate the id to downstream calls (automatic for tracing-enabled clients).

Practices

  • Never log secrets, tokens, passwords, or full personal data.
  • Change levels at runtime only via a secured loggers endpoint.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The skill provides comprehensive guidelines for implementing and managing observability in Spring Boot applications. It follows secure defaults, includes explicit safety warnings regarding sensitive data (secrets, heap dumps), and recommends official or well-known community tools for development. No malicious patterns or security risks were detected.

  • Socket20d

    No alerts

  • Snyk5d

    Risk: CRITICAL · 2 issues

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last month

README badge

README badge for github/awesome-copilot/spring-observability