You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a couple of issues in how the OTLP exporters are documented in the opentelemetry-cpp repo.
They're scattered in a number of places, so I'm dropping them in a single issue, sorry about that.
OTLP exporters are not included in the default opentelemetry-cpp package, instead they are optional features. To enable an OTLP exporter, you need to modify your vcpkg manifest as follows:
For exporters, the critical value is otlp_http_exporter. None of these fields appear to be documented :(.
Finally, once you add otlp_http_exporter to the list of link libraries, there are a number of packages which need to be added to your configuration to make things link:
With these modifications, I was able to successfully incorporate the OTLP Http exporter into my application, but figuring out the magic incantations took several hours. It would be nice if they were included in the documentation for the HTTP exporter (and the other exporters).
The text was updated successfully, but these errors were encountered:
This has downstream effects, too, as I had the same problem using the downstream vcpkg package for open-telemetry and had to find and link the previously mentioned libraries.
However, unlike @LarryOsterman, I did not have to use find_package(gRPC) as I was only using the otlp-http feature in that port.
This has downstream effects, too, as I had the same problem using the downstream vcpkg package for open-telemetry and had to find and link the previously mentioned libraries.
However, unlike @LarryOsterman, I did not have to use find_package(gRPC) as I was only using the otlp-http feature in that port.
I discovered after filing this that the gRPC dependency was fixed in the OTLP port a couple of months ago. At the time I filed the bug, my repo was using a vcpkg baseline from November which had that issue. But the other dependencies (protobuf, nlohmann_json, and curl) are still needed.
There are a couple of issues in how the OTLP exporters are documented in the opentelemetry-cpp repo.
They're scattered in a number of places, so I'm dropping them in a single issue, sorry about that.
For exporters, the critical value is
otlp_http_exporter
. None of these fields appear to be documented :(.With these modifications, I was able to successfully incorporate the OTLP Http exporter into my application, but figuring out the magic incantations took several hours. It would be nice if they were included in the documentation for the HTTP exporter (and the other exporters).
The text was updated successfully, but these errors were encountered: