-
Notifications
You must be signed in to change notification settings - Fork 148
Add Auto-Instrumentation for distributed tracing #5058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add Auto-Instrumentation for distributed tracing #5058
Conversation
…tation-for-distributed-tracing-in-flow-ui
| fireEvent(new ReadyEvent(this)); | ||
| getUiObservationSupport().createViewEventObservation(this, ReadyEvent.class.getSimpleName()) | ||
| .observe(() -> fireEvent(new ReadyEvent(this))); | ||
| stopViewTimerSample(sample, meterRegistry, READY, getId().orElse(null)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to use Timer and Observation at the same time? As I know, Observation contains Timer functions inside.
|
|
||
| @SuppressWarnings("unchecked") | ||
| E entity = (E) storage.load(context); | ||
| E entity = (E) observationSupport.createEntityLoadObservation(metaClass, context.getQuery()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use it not only in the DataManager, but also in the DataLoader(s) (when we currently use Timers)?
Added custom spans for the following cases:
Implemented observation context propagation for background tasks.
The following application properties have been added:
jmix.core.data-observation-enabledwithfalsedefault valuejmix.ui.ui-observation-enabledwithfalsedefault valueThe value of the properties controls the creation of custom spans in the application.
observability-test.zip