Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 19, 2025

Restores OpenTelemetry telemetry support that was reverted from buildpack.md and image_extension.md in commit 17e6edc. These changes belong in the buildpack API spec (buildpack/0.13) rather than the platform spec.

Changes

buildpack.md

  • Added CNB_OTEL_TRACEPARENT and CNB_OTEL_LOG_PATH environment variables to detect and build phase inputs
  • Documented CNB_OTEL_LOG_PATH as output for both phases
  • Added MAY clauses permitting buildpacks to write telemetry in OpenTelemetry File Exporter format

image_extension.md

  • Added MAY clause permitting extensions to write telemetry to CNB_OTEL_LOG_PATH

Example

Buildpacks can now optionally emit telemetry during detect or build:

# Platform provides path
CNB_OTEL_LOG_PATH=/layers/tracing/buildpacks/example@1.0.0-detect.jsonl

# Buildpack writes OpenTelemetry JSONL format
echo '{"resourceSpans":[...]}' >> $CNB_OTEL_LOG_PATH

The CNB_OTEL_TRACEPARENT variable enables correlation with platform traces via W3C Trace Context.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/buildpacks/spec/pulls/421/commits
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Pull OTEL changes from buildpack.md and image_extension.md into a new PR</issue_title>
<issue_description>Commit that reverted the changes out: 17e6edc

The OTEL changes introducing CNB_OTEL_LOG_PATH and the behavior documented need to be in a new PR against buildpack/0.13.</issue_description>

<agent_instructions>Bring in the reverted commit changes in a new branch PR</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: jabrown85 <790999+jabrown85@users.noreply.github.com>
Copilot AI changed the title [WIP] Add OTEL changes for CNB_OTEL_LOG_PATH to buildpack/0.13 Restore OTEL telemetry specification for buildpacks and extensions Dec 19, 2025
Copilot AI requested a review from jabrown85 December 19, 2025 22:45
@jabrown85 jabrown85 changed the title Restore OTEL telemetry specification for buildpacks and extensions Implement RFC #0131 - Build Observability telemetry specification (Buildpack spec) Dec 20, 2025
@jabrown85 jabrown85 marked this pull request as ready for review December 20, 2025 00:23
@jabrown85 jabrown85 requested a review from a team as a code owner December 20, 2025 00:23
@jabrown85 jabrown85 requested a review from hone January 6, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants