Skip to content

Difference between plugin and instrumentation #1930

Answered by vmarchaud
morigs asked this question in Q&A
Discussion options

You must be logged in to vote

Plugin was the original system (pretty much ported from opencensus) in which we implement support for auto-instrumentation, however it has several drawbacks:

  • #1412
  • #1315
  • Only support for traces and our end goal would be to have a single auto instrumentation that generate both traces and metrics.
  • Being able to auto instrument multiples packages at once, this makes sense for @opentelemetry/instrumentation-http that both handle http and https or @opentelemetry/instrumentation-grpc that handle grpc and @grpc/grpc-js, that allows to keep related utils where we use them
  • Allows auto instrumentation to only depend on @opentelemetry/api so they works with any SDK (and not necessarily only the sdk…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@morigs
Comment options

@vmarchaud
Comment options

Answer selected by morigs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants