Giter VIP home page Giter VIP logo

opentelemetry-javaagent-buildpack's Introduction

ghcr.io/making/buildpacks/opentelemetry-javaagent

The OpenTelemetry Java Agent Buildpack is a Cloud Native Buildpack that contributes the OpenTelemetry Java Agent.

Behavior

This buildpack will participate if all the following conditions are met

  • the build plan contains jvm-application
  • $BP_DISABLE_OTEL_JAVAAGENT is not set

The buildpack will do the following:

  • Contributes a Java agent to a layer and configures JAVA_TOOL_OPTIONS to use it

This buildpack does not configure Java system properties (-D flags) or as environment variables for the agent. See the configuration documentation for the full list of configuration items.

Example

git clone https://github.com/making/hello-servlet.git
pack build hello-servlet \
  --path hello-servlet \
  --buildpack paketo-buildpacks/java \
  --buildpack ghcr.io/making/buildpacks/opentelemetry-javaagent \
  --builder paketobuildpacks/builder:base
docker run \
  --rm \
  -p 9411:9411 \
  openzipkin/zipkin-slim

docker run \
  --rm \
  -p 8080:8080 \
  -e JAVA_TOOL_OPTIONS="-Dotel.resource.attributes=service.name=hello-service -Dotel.traces.exporter=zipkin -Dotel.exporter.zipkin.endpoint=http://host.docker.internal:9411/api/v2/spans" \
  hello-servlet
curl http://localhost:8080

Go to http://localhost:9411 image

License

This buildpack is released under version 2.0 of the Apache License.

opentelemetry-javaagent-buildpack's People

Contributors

making avatar paslavsky avatar

Watchers

 avatar

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.