-
Notifications
You must be signed in to change notification settings - Fork 56
1.0 Migration Guide
Jonatan Ivanov edited this page Sep 7, 2022
·
4 revisions
-
[Breaking change] We have made
SampleTestRunnercreate and close the meter/observation registries on each parameterized test run. Prior to this change, to use custom registries, the constructor needed to take them. After this change,create[Meter|Observation]Registrymethods are added. You can override them to provide custom registries.
-
[Breaking change] We have made
FinishedSpanreturnInstantfor start and finish timestamps (Issue). You have to convert your code to useInstant. -
[Breaking change] We have removed all Http related handlers (HTTP client and HTTP server). You should be using the
PropagatingSenderTracingObservationHandlerandPropagatingReceiverTracingObservationHandlerrespecitively. Also if you were usingHttpRequest/HttpResponseand the like from micrometer-core it got moved to tracing underio.micrometer.tracing.httppackage (PR)
-
[Breaking change] We have renamed the
micrometer-tracing-apiJAR tomicrometer-tracing(PR)
Since we're aligning to Micrometer 1.10, you need to update your code with the changes around Tag and Tags in commons changing to KeyValue and KeyValues. All the methods in DocumentedSpan need to be updated too.
-
DocumentedSpan-
TagKey->KeyName -
getTagKeys()->getKeyNames() -
getAdditionalTags()->getAdditionalKeyNames()
-
-
SpanAssert-
hasTagWithKey(TagKey key)->hasTagWithKey(KeyName key) -
hasTag(TagKey key, String value)->hasTag(KeyName key, String value) -
doesNotHaveTagWithKey(TagKey key)->doesNotHaveTagWithKey(KeyName key) -
doesNotHaveTag(TagKey key, String value)->doesNotHaveTag(KeyName key, String value)
-
-
SpansAssert-
hasASpanWithATag(TagKey key, String value)->hasASpanWithATag(KeyName key, String value) -
hasASpanWithATagKey(TagKey key)->hasASpanWithATagKey(KeyName key)
-