Skip to content

Auto-capture prompts in agentic workflows and copilot#3590

Merged
plengauer merged 3 commits into
mainfrom
plengauer-patch-4
Jun 6, 2026
Merged

Auto-capture prompts in agentic workflows and copilot#3590
plengauer merged 3 commits into
mainfrom
plengauer-patch-4

Conversation

@plengauer
Copy link
Copy Markdown
Owner

No description provided.

@plengauer plengauer self-assigned this Jun 4, 2026
plengauer added 2 commits June 4, 2026 22:21
Change condition to set OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT only if it is not already set.
@plengauer plengauer changed the title Update agent.instrumentation.github.copilot.sh Auto-capture promots in agentic situations Jun 4, 2026
@plengauer plengauer changed the title Auto-capture promots in agentic situations Auto-capture prompts in agentic workflows and copilot Jun 4, 2026
@plengauer plengauer marked this pull request as ready for review June 4, 2026 20:25
@plengauer plengauer requested a review from moflwi as a code owner June 4, 2026 20:25
Copilot AI review requested due to automatic review settings June 4, 2026 20:25
@plengauer plengauer enabled auto-merge (squash) June 4, 2026 20:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables automatic GenAI prompt/message content capture for GitHub Copilot and agentic GitHub Actions workflows by setting the OpenTelemetry GenAI message-content capture env var during workflow execution.

Changes:

  • Default OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT to span_and_event for Copilot “dynamic” jobs.
  • Default OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT to span_and_event when instrumenting gh-aw agentic workflow scripts.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/usr/share/opentelemetry_shell/agent.instrumentation.github.copilot.sh Sets a default GenAI message-content capture mode in Copilot dynamic jobs via $GITHUB_ENV.
actions/instrument/job/decorate_action.sh Sets the same default capture mode when instrumenting gh-aw agentic workflow scripts via $GITHUB_ENV.

Comment thread actions/instrument/job/decorate_action.sh
@plengauer plengauer merged commit 1836d00 into main Jun 6, 2026
588 checks passed
@plengauer plengauer deleted the plengauer-patch-4 branch June 6, 2026 09:00
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.

3 participants