Update example app and docs example to use NodeTracerProvider
Majority of users will be using a NodeTracerProvide, so this should be a little more relevant than a manually configured BasicTracerProvider
Change docs example to use a BatchSpanProcessor
While a SimpleSpanProcessor makes sense for an example, it may be misleading to use in the docs as a BatchSpanProcessor is the way to go in most scenarios.
Update example app to use node-fetch and @opentelemetry/instrumentation-http (#32)
This should demonstrate how wrapRoutes can be used in conjunction with automated OpenTelemetry instrumentations.
Summary
NodeTracerProvider
NodeTracerProvide
, so this should be a little more relevant than a manually configuredBasicTracerProvider
BatchSpanProcessor
SimpleSpanProcessor
makes sense for an example, it may be misleading to use in the docs as aBatchSpanProcessor
is the way to go in most scenarios.node-fetch
and@opentelemetry/instrumentation-http
(#32)wrapRoutes
can be used in conjunction with automated OpenTelemetry instrumentations.