-
Couldn't load subscription status.
- Fork 148
feat(openinference-core): decorators #2344
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
base: main
Are you sure you want to change the base?
Conversation
43591e8 to
5b5e856
Compare
@arizeai/openinference-core
@arizeai/openinference-genai
@arizeai/openinference-instrumentation-anthropic
@arizeai/openinference-instrumentation-bedrock
@arizeai/openinference-instrumentation-bedrock-agent-runtime
@arizeai/openinference-instrumentation-beeai
@arizeai/openinference-instrumentation-langchain
@arizeai/openinference-instrumentation-mcp
@arizeai/openinference-instrumentation-openai
@arizeai/openinference-mastra
@arizeai/openinference-semantic-conventions
@arizeai/openinference-vercel
commit: |
6b49a48 to
7cf2cd2
Compare
| constructor(name: string) { | ||
| this.name = name; | ||
| } | ||
| @observe() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to avoid collision with otel's trace api
| * }); | ||
| * ``` | ||
| */ | ||
| export function withSpan<Fn extends UnknownFn>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This name seems semantic but maybe we could alias observeFunction or something like that....
resolves #2228
Added tracing capabilities with decorators and function
withSpan(),withAgentSpan(),withToolSpan(),withChainSpan()@observe()for class methodsExamples
Function Wrapping:
Decorators:
Custom Processing: