Open dyladan opened 4 years ago
We have https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/instrumentation-guide.md Can we close this @dyladan?
Hmm I originally thought yes we could close it, but the linked docs show how to use the instrumentation package to write an instrumentation. We still need to document what our requirements are to accept them into the contrib repo.
This is separate from the contributing guidelines which are made for newcomers and are fairly unspecific.
Somewhere we need to document all the small things that plugin developers need to know, and possibly have a checklist that every plugin PR should go through. Something like the following:
open
is called and ended whensend
finishes. If the user never callssend
and drops their reference to the xhr object, we have to make sure we don't keep a reference or we will leak memory.I'm sure there are others, this is just what I thought of