# Elastic observability for C++ Applications

**URL:** <https://discuss.elastic.co/t/elastic-observability-for-c-applications/375497>\
**Category:** APM\
**Created:** [March 6, 2025, 5:26am UTC](https://discuss.elastic.co/t/elastic-observability-for-c-applications/375497 "2025-03-06T05:26:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![meghananagaraja](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@meghananagaraja](https://discuss.elastic.co/u/meghananagaraja)\
**Post date:** [March 6, 2025, 5:26am UTC](https://discuss.elastic.co/t/elastic-observability-for-c-applications/375497/1 "2025-03-06T05:26:37Z")

</div>

Dear All,

I need a observability solution for a mid size enterprise for distributed tracing.  
I have a pipeline to ingest logs i.e. service -\> kafka -\> process by pyspark -\> ES  
I do not want to use elastic agent(because we use C++) instead create custom logs by individual services to match elastic schema and feed to ES. Can I use elastic apm seamlessly by using above method. Can I do tracing visualisation of spans etc? Would this be a good idea. The solution needs to be scalable. Please suggest if this can be done any other way.

Thank you

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 6, 2025, 7:24am UTC](https://discuss.elastic.co/t/elastic-observability-for-c-applications/375497/2 "2025-03-06T07:24:51Z")

</div>

Have you considered the OTEL C++ SDK

> **[C++](https://opentelemetry.io/docs/languages/cpp/)**
>
> A language-specific implementation of OpenTelemetry in C++.

You can use this OTEL C++ OLTP \> Elastic APM Server \> Elasticsearch

Or

OTEL C++ OLTP \> OTEL Collector \> Elastic APM Server \> Elasticsearch

and it should work.

---

<div class="post-metadata">

**Author:** ![meghananagaraja](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@meghananagaraja](https://discuss.elastic.co/u/meghananagaraja)\
**Post date:** [March 6, 2025, 9:43am UTC](https://discuss.elastic.co/t/elastic-observability-for-c-applications/375497/3 "2025-03-06T09:43:38Z")

</div>

Yes explored Otel but right now its difficult for us to integrate in our workflow. Hence custom logging.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 6, 2025, 2:13pm UTC](https://discuss.elastic.co/t/elastic-observability-for-c-applications/375497/4 "2025-03-06T14:13:16Z")

</div>

The APM data model and our code is open. So yes if you ship the correct shape / schema data To the APM server it should work.
