# Span.log with opentracing

**URL:** <https://discuss.elastic.co/t/span-log-with-opentracing/209366>\
**Category:** APM\
**Tags:** java\
**Created:** [November 25, 2019, 7:50pm UTC](https://discuss.elastic.co/t/span-log-with-opentracing/209366 "2019-11-25T19:50:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Post date:** [November 25, 2019, 7:50pm UTC](https://discuss.elastic.co/t/span-log-with-opentracing/209366/1 "2019-11-25T19:50:15Z")

</div>

**Kibana version** : 7.3.2

**Elasticsearch version** : 7.3.2

**APM Server version** : 7.3.2

**APM Agent language and version** : java 1.9.0

**Fresh install or upgraded from other version?** fresh install

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc. :-----No

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)** :

**Steps to reproduce** :

I am tracing my spans in Kibana using open tracing. But I have some actions which I don't want to create them as spans . I just need to capture them as events , which is exactly what the span.log api from opentracing does. But how can I visualize them in Kibana. Where exactly can I view the event that I have added into the logs

FOR EXAMPLE childSpan.log(System.currentTimeMillis()\*1000, "testing event"); I checked Kibana to see "testing event" , but couldn't locate it.

To be more precise how can we log events using Elastic APM opentracing bridge or set an the action related to a span using the open tracing bridge

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [November 26, 2019, 2:03am UTC](https://discuss.elastic.co/t/span-log-with-opentracing/209366/2 "2019-11-26T02:03:57Z")

</div>

> To be more precise how can we log events using Elastic APM opentracing bridge or set an the action related to a span using the open tracing bridge

Please see the caveats section of the OpenTracing bridge docs:

> **[OpenTracing bridge | APM Java Agent Reference \[1.x\] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/opentracing-bridge.html#logs)**

(This feature is not supported, apart from error logs.)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 16, 2019, 10:04pm UTC](https://discuss.elastic.co/t/span-log-with-opentracing/209366/3 "2019-12-16T22:04:12Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
