-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(opentelemetry-node): add @elastic/opentelemetry-instrumentation-openai #480
Conversation
Running the top-level example looks like this:
And telemetry (in mockotlpserver) looks like:
(Aside: The GCP resource detector spans are still something we want to deal with.) |
…t to include the license file in the published package
@@ -59,6 +60,7 @@ | |||
*/ | |||
|
|||
/* eslint-disable prettier/prettier */ | |||
const {OpenAIInstrumentation} = require('@elastic/opentelemetry-instrumentation-openai'); |
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.
I guess the alphabetical order is per package scope & name? if this goes upstream we should move it down then?
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.
I guess. That's why I put it at the top. I don't have a preference though.
@trentm the openAI instrumentation has some warnings that now appear in all PRs. I'm okay withe the |
@david-luna Do you mean the "any" lint warnings?
Do you suggest I added eslint-disable comments for all of these? At least in opentelemetry-js-contrib.git this isn't typically done. E.g. instrumentation-bunyan has a few warnings:
but those don't show up in other opentelemetry-js-contrib.git PRs, IIUC. |
Not showing up in the PR would be enough for me. Do you know how is not showing in opentelemetry-js-contrib.git? |
No :/ These warnings are "annotations", see the top of https://github.com/elastic/elastic-otel-node/actions/runs/12365514795/job/34510641198?pr=480 I don't really know what the process is for those being set, especially on unrelated PRs. I'll merge this and then I'm curious to see if they remain, then we can follow-up separately. |
This does NOT include:
OTEL_NODE_ENABLED_INSTRUMENTATIONS
andOTEL_NODE_DISABLED_INSTRUMENTATIONS
. I think that is a longer discussion. I'll open a separate issue for that. -> supporting non-otel instrs in OTEL_NODE_{DIS,EN}ABLED_INSTRUMENTATIONS #481module.register()
usage in bootstrapping. -> use IITM wrap-only-hooked support for ESM #288