# Elastic Observability + OpenTelemetry

**URL:** <https://discuss.elastic.co/t/elastic-observability-opentelemetry/362278>\
**Category:** Elastic Observability\
**Created:** [July 1, 2024, 7:20am UTC](https://discuss.elastic.co/t/elastic-observability-opentelemetry/362278 "2024-07-01T07:20:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![starfall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/starfall/32/135681_2.png) [@starfall](https://discuss.elastic.co/u/starfall)\
**Post date:** [July 1, 2024, 7:20am UTC](https://discuss.elastic.co/t/elastic-observability-opentelemetry/362278/1 "2024-07-01T07:20:52Z")

</div>

Is it possible to enrich the log details of a Java Spring boot app log from OpenTelemetry with Elastic Common Schema? For e.g. if I add user.id as MDC key-value within my app and log a message, i will like for user.id to appear as metadata for that log.

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 5, 2024, 2:05pm UTC](https://discuss.elastic.co/t/elastic-observability-opentelemetry/362278/2 "2024-07-05T14:05:53Z")

</div>

Hi @starfall,

Welcome to the community! Are you using the [OpenTelemetry Java agent](https://opentelemetry.io/docs/zero-code/java/agent/) or another technique such as a collector?

---

<div class="post-metadata">

**Author:** ![starfall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/starfall/32/135681_2.png) [@starfall](https://discuss.elastic.co/u/starfall)\
**Post date:** [July 8, 2024, 7:42am UTC](https://discuss.elastic.co/t/elastic-observability-opentelemetry/362278/3 "2024-07-08T07:42:50Z")

</div>

yes, i'm using the OpenTelemetry Java agent and we have a collector set up to send the logs to Kibana.
