Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding metadata to webhook guardrails #655

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

roh26it
Copy link
Collaborator

@roh26it roh26it commented Oct 3, 2024

Add metadata to HookSpanContext and webhook plugin

Changes

This pull request introduces the following changes to the AI gateway repo:

  1. Added metadata to the HookSpanContext, which is now available as plugincontext in all plugins.
  2. Updated the webhook plugin to accept a new sendMetadata option, allowing metadata to be sent along with the webhook information.

Purpose

These changes enhance the flexibility and information sharing capabilities of our plugin system, particularly for the webhook plugin.

@roh26it roh26it requested a review from VisargD October 3, 2024 20:17
plugins/default/webhook.ts Outdated Show resolved Hide resolved
@VisargD VisargD merged commit 23a1296 into main Oct 8, 2024
1 check passed
@VisargD VisargD deleted the enhancement/add-metadata-to-webhook-gr branch October 8, 2024 07:59
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