Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
instrument
script now uses thestart
call instead of duplicating the logic.start
:resource
- a method which is called with the detected environment resource. Users can return their own resource from this function, which gets passed to all signals (instead of doing it separately for all signals - where the API for it differed).start
:realm
- when specified therealm
is passed to the underlying signals. Only applicable for traces and metrics at the moment as logs and profiling data can't be sent directly over OTLP.http/protobuf
(the default setting) is enabled andendpoint
option is set, signals now attach the resource path to the endpoint. E.g.start({ endpoint: 'http://localhost:4318' });
means/v1/traces
,/v1/metrics
and/v1/logs
resource paths are automatically appended.