{"id":19792136,"url":"https://github.com/making/opentelemetry-javaagent-buildpack","last_synced_at":"2025-05-01T02:30:24.992Z","repository":{"id":37981736,"uuid":"419957694","full_name":"making/opentelemetry-javaagent-buildpack","owner":"making","description":"Cloud Native Buildpack for OpenTelemetry Java Agent","archived":false,"fork":false,"pushed_at":"2022-09-15T00:57:01.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T07:43:11.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/making.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-22T03:48:48.000Z","updated_at":"2023-03-21T21:57:27.000Z","dependencies_parsed_at":"2022-09-06T10:10:46.374Z","dependency_job_id":null,"html_url":"https://github.com/making/opentelemetry-javaagent-buildpack","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fopentelemetry-javaagent-buildpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fopentelemetry-javaagent-buildpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fopentelemetry-javaagent-buildpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fopentelemetry-javaagent-buildpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/making","download_url":"https://codeload.github.com/making/opentelemetry-javaagent-buildpack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251812227,"owners_count":21647866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T07:06:06.411Z","updated_at":"2025-05-01T02:30:24.707Z","avatar_url":"https://github.com/making.png","language":"Shell","readme":"# `ghcr.io/making/buildpacks/opentelemetry-javaagent`\n\n⚠️ This project will be no longer maintained after paketo buildpack for opentelemetry is released.\u003cbr\u003e\n**Use https://github.com/paketo-buildpacks/opentelemetry instead when it's released. **\n\n\nThe OpenTelemetry Java Agent Buildpack is a Cloud Native Buildpack that contributes the OpenTelemetry Java Agent.\n\n## Behavior\n\nThis buildpack will participate if all the following conditions are met\n\n\n* the build plan contains `jvm-application`\n* The `$BP_OPENTELEMETRY_ENABLED` is set to `true` (**the breaking change since 0.2.0**)\n\nThe buildpack will do the following:\n\n* Contributes a Java agent to a layer and configures `JAVA_TOOL_OPTIONS` to use it\n\nThis buildpack does not configure Java system properties (`-D` flags) or as environment variables for the agent. \nSee [the configuration documentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/agent-config.md) for the full list of configuration items. \n\n\n## Example\n\n```\ngit clone https://github.com/making/hello-servlet.git\npack build hello-servlet \\\n  --path hello-servlet \\\n  -e BP_OPENTELEMETRY_ENABLED=true \\\n  --buildpack paketo-buildpacks/java \\\n  --buildpack ghcr.io/making/buildpacks/opentelemetry-javaagent \\\n  --builder paketobuildpacks/builder:base\n```\n\n```\ndocker run \\\n  --rm \\\n  -p 9411:9411 \\\n  openzipkin/zipkin-slim\n\ndocker run \\\n  --rm \\\n  -p 8080:8080 \\\n  -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\" \\\n  hello-servlet\n```\n\n```\ncurl http://localhost:8080\n```\n\n\nGo to http://localhost:9411\n![image](https://user-images.githubusercontent.com/106908/138395273-d58e2ec7-247d-4976-b7c2-7267fd879617.png)\n\n\n## License\nThis buildpack is released under version 2.0 of the [Apache License](http://www.apache.org/licenses/LICENSE-2.0).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fopentelemetry-javaagent-buildpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaking%2Fopentelemetry-javaagent-buildpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fopentelemetry-javaagent-buildpack/lists"}