# OpenTracing integration

**URL:** <https://community.temporal.io/t/opentracing-integration/3771>\
**Category:** Community Support\
**Tags:** ruby-sdk, opentracing\
**Created:** [January 18, 2022, 1:04pm UTC](https://community.temporal.io/t/opentracing-integration/3771 "2022-01-18T13:04:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim37021](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tim37021/32/1089_2.png) [@tim37021](https://community.temporal.io/u/tim37021)\
**Post date:** [January 18, 2022, 1:04pm UTC](https://community.temporal.io/t/opentracing-integration/3771/1 "2022-01-18T13:04:49Z")

</div>

Hi I wonder is there anybody try to integrate APM with temporal.

I knew temporal-web has similar stuff, it display the activity lifetime in frame graph.  
But it doesn’t show what happened inside each activity unless I use logging. and fetch it with other service.

I want to use opentracing, but it’s easy to create span in activity, not in workflow.

```ruby
class MyWorkflow
  def execute
    span = OpenTracingTemporal.start_active_span("My Span")
      # The SpanContext carries data across process boundaries
      distributed_span_ctx = {}
      OpenTracing.inject(span.context, OpenTracing::FORMAT_TEXT_MAP, distributed_span_ctx)
      SomeActivity.execute!(**params, parent_span: distributed_span_ctx)
    span.close
  end

```

end

OpenTracing"Temporal" because I don’t think OpenTracing has interface to do this.  
OpenTracing.start\_active\_span returns a span. it is not replayable(non-deterministic) and it’s value is not promised to be serializable.(so I cannot make it inside activity) Maybe the problem is in OpenTracing.

I wonder if there’s anyone doing this.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/f/f01a3afddca11ca512d15b47663be6ec18ccfba0.png)

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [June 14, 2022, 2:13am UTC](https://community.temporal.io/t/opentracing-integration/3771/2 "2022-06-14T02:13:33Z")

</div>

Hi @tim37021  
we don’t officially support a Ruby SDK at the moment. We do have a community on `ruby-sdk-dev` channel on our slack that might be able to help. Do you mind posting the question there and let me know if you don’t get a response. Thanks.
