Giter Club home page Giter Club logo

opentelemetry-java-docs's Introduction

Java OpenTelemetry Examples

This module contains a set of fully-functional, working examples of using the OpenTelemetry Java APIs and SDK that should all be able to be run locally. Some of them assume you have docker running on your local machine.

Example modules:

  • Using the SDK AutoConfiguration module
    • This module contains a fully-functional example of using the autoconfigure SDK extension module to configure the SDK using only environment variables (or system properties).
    • Note: the opentelemetry-sdk-extension-autoconfigure module is still experimental at this time.
  • Manual instrumentation of HTTP
    • This module provides an example of writing manual instrumentation for HTTP, both client and server.
    • Note more production-ready instrumentation for HTTP is provided as a part of the OpenTelemetry Java Instrumentation project.
  • Configuring the Jaeger Exporter
    • This module contains a fully-functional example of configuring the OpenTelemetry SDK to use a Jaeger exporter, and send some spans to it using the OpenTelemetry API.
    • Note: this example requires having docker installed to run the example.
  • Using the OpenTelemetry Java Agent
    • This module demonstrates using the OpenTelemetry Java Agent with a simple spring boot application. Traces, metrics, and logs are exported to a collector via OTLP.
  • Spring native image telemetry with OpenTelemetry Spring Starter
    • This module demonstrates using the OpenTelemetry Spring Boot starter with a Graal VM native image. Traces and metrics are exported to a collector via OTLP.
  • Configuring Log Appenders
    • This module demonstrates how to configure the Log4j and Logback appenders to bridge logs into the OpenTelemetry Log SDK.
  • Configuring the Logging Exporters
    • This module contains a fully-functional example of configuring the OpenTelemetry SDK to use a logging exporter.
  • Using the OpenTelemetry metrics API
    • This module contains examples of using the OpenTelemetry metrics APIs.
  • Using OpenTelemetry Micrometer shim
    • This module contains an example of a typical micrometer setup (spring boot with spring boot actuator) configured to bridge metrics to OpenTelemetry with the micrometer shim.
    • Note: the micrometer shim is still experimental at this time.
  • Setting up OTLP exporters
    • OTLP is the OpenTelemetry Protocol. This module will demonstrate how to configure the OTLP exporters, and send data to the OpenTelemetry collector using them.
    • Note: this example requires having docker installed to run the example.
  • Setting up the Prometheus exporter
    • The module shows how to configure the OpenTelemetry SDK to expose an endpoint that can be scraped by Prometheus.
    • Note: the prometheus metric reader is still experimental at this time.
  • Manually Configuring the SDK
    • This module shows some concrete examples of manually configuring the Java OpenTelemetry SDK for Tracing.
  • Telemetry Testing
    • This module demonstrates how to test OpenTelemetry instrumentation with a MockServer.
  • Setting up the Zipkin exporter
    • This module contains a fully-functional example of configuring the OpenTelemetry SDK to use a Zipkin exporter, and send some spans to a zipkin backend using the OpenTelemetry API.
    • Note: this example requires having docker installed to run the example.

Approvers and Maintainers

Superset of approvers and maintainers from the opentelemetry-java and opentelemetry-java-instrumentation repositories.

opentelemetry-java-docs's People

Contributors

renovate[bot] avatar dependabot[bot] avatar trask avatar jack-berg avatar cartermp avatar jeanbisutti avatar github-actions[bot] avatar breedx-splk avatar chalin avatar opentelemetrybot avatar jkwatson avatar dashpole avatar alexczar avatar hozahaled avatar roiocam avatar anuraaga avatar heyams avatar izzzu avatar jaydeluca avatar likethesalad avatar sergeykanzhelev avatar zachauten avatar

Watchers

 avatar

opentelemetry-java-docs's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations to v1.28.0
  • Update dependency io.opentelemetry.javaagent:opentelemetry-javaagent to v1.28.0
  • Update dependency org.assertj:assertj-core to v3.24.2
  • Update dependency org.mock-server:mockserver-netty to v5.15.0
  • Update gradle/wrapper-validation-action action to v1.1.0
  • Update junit5 monorepo (org.junit.jupiter:junit-jupiter-engine, org.junit.jupiter:junit-jupiter-api, org.junit.platform:junit-platform-runner)
  • Update otel/opentelemetry-collector-contrib Docker tag to v0.82.0
  • Update plugin com.diffplug.spotless to v6.20.0
  • Update plugin io.spring.dependency-management to v1.1.2
  • Update spring boot
  • Update eclipse-temurin Docker tag to v17
  • Update plugin de.undercouch.download to v5
  • Update plugin org.springframework.boot to v3
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
javaagent/docker-compose.yml
  • otel/opentelemetry-collector-contrib 0.72.0
log-appender/docker-compose.yml
  • otel/opentelemetry-collector-contrib 0.72.0
otlp/docker/docker-compose.yaml
prometheus/docker-compose.yml
spring-native/docker-compose.yml
  • otel/opentelemetry-collector-contrib 0.77.0
dockerfile
javaagent/Dockerfile
  • eclipse-temurin 11-jre
prometheus/Dockerfile
  • eclipse-temurin 11-jre
github-actions
.github/workflows/build.yml
  • actions/checkout v3
  • gradle/wrapper-validation-action v1.0.6
  • actions/checkout v3
  • actions/setup-java v3
  • gradle/gradle-build-action v2
.github/workflows/issue-management-feedback-label.yml
  • actions/checkout v3
.github/workflows/issue-management-stale-action.yml
  • actions/stale v8
.github/workflows/reusable-markdown-link-check.yml
  • actions/checkout v3
.github/workflows/reusable-workflow-notification.yml
  • actions/checkout v3
.github/workflows/update-gradle-wrappers-daily.yml
  • actions/checkout v3
  • actions/setup-java v3
  • gradle-update/update-gradle-wrapper-action v1
gradle
gradle.properties
settings.gradle
  • com.diffplug.spotless 6.19.0
  • com.github.johnrengelman.shadow 8.1.1
  • com.google.protobuf 0.9.3
build.gradle
  • io.opentelemetry:opentelemetry-bom-alpha 1.28.0-alpha
  • io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha 1.28.0-alpha
autoconfigure/build.gradle
http/build.gradle
jaeger/build.gradle
javaagent/build.gradle
  • org.springframework.boot 2.5.12
  • io.spring.dependency-management 1.0.11.RELEASE
  • de.undercouch.download 4.1.1
log-appender/build.gradle
  • org.slf4j:slf4j-api 2.0.6
  • ch.qos.logback:logback-core 1.4.5
  • ch.qos.logback:logback-classic 1.4.5
  • org.slf4j:jul-to-slf4j 2.0.6
  • org.apache.logging.log4j:log4j-bom 2.20.0
logging/build.gradle
metrics/build.gradle
micrometer-shim/build.gradle
  • org.springframework.boot 2.7.1
  • io.spring.dependency-management 1.0.12.RELEASE
otlp/build.gradle
prometheus/build.gradle
sdk-usage/build.gradle
spring-native/build.gradle
  • org.springframework.boot 3.1.0
  • io.spring.dependency-management 1.1.0
  • org.graalvm.buildtools.native 0.9.20
  • io.opentelemetry:opentelemetry-bom 1.26.0
  • io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha 1.26.0-alpha
telemetry-testing/build.gradle
  • org.springframework.boot 2.5.12
  • io.spring.dependency-management 1.0.11.RELEASE
  • io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations 1.17.0-alpha
  • org.junit.platform:junit-platform-runner 1.9.0
  • org.junit.jupiter:junit-jupiter-api 5.7.0
  • org.junit.jupiter:junit-jupiter-engine 5.7.0
  • org.mock-server:mockserver-netty 5.14.0
  • org.awaitility:awaitility 4.2.0
  • io.opentelemetry.proto:opentelemetry-proto 0.14.0-alpha
  • org.assertj:assertj-core 3.23.1
  • io.opentelemetry.javaagent:opentelemetry-javaagent 1.20.2
zipkin/build.gradle
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.2

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.