Skip to content

Conversation

@marcingrzejszczak
Copy link
Contributor

without this change in order to e.g. create spans we always need to put an observation in scope so that spans are put in thread local and a child span is being set. That doesn't make a lot of sense when we exactly know what the parent observation is.
with this change we're allowing to set a parent observation direcly on an existing observation. That way we're able to maintain a parent child relationship of observations and of e.g. spans

related to micrometer-metrics/micrometer#3291

without this change in order to e.g. create spans we always need to put an observation in scope so that spans are put in thread local and a child span is being set. That doesn't make a lot of sense when we exactly know what the parent observation is.
with this change we're allowing to set a parent observation direcly on an existing observation. That way we're able to maintain a parent child relationship of observations and of e.g. spans

related to micrometer-metrics/micrometer#3291
@marcingrzejszczak marcingrzejszczak added the enhancement New feature or request label Jul 14, 2022
@marcingrzejszczak marcingrzejszczak added this to the 1.0.0-M7 milestone Jul 14, 2022
@marcingrzejszczak marcingrzejszczak merged commit 3a1ee87 into main Jul 15, 2022
@jonatan-ivanov jonatan-ivanov deleted the parentObservation branch July 15, 2022 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants