Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support: provide option to stringify log body directly in OTEL exporter #10166

Open
meetzaveri opened this issue Mar 13, 2024 · 1 comment
Open
Labels
k/enhancement New feature or improve an existing feature

Comments

@meetzaveri
Copy link
Member

meetzaveri commented Mar 13, 2024

Is your proposal related to a problem?

In some observability tools, when connected as logs receiver directly to Hasura's OTEL exporter, it fails to capture some of the details (as opposed to traditional logs exporter i.e. non-OTEL).

Specifically in case of New Relic, when we directly use New Relic OTEL endpoints in Hasura OTEL Exporter, some details such as request body log (JSON object) wouldn't get captured. This is because the New Relic expects a JSON string, whereas the input it gets is JSON object body . You would need an OTEL collector in middle to transform from JSON object to JSON string.

Describe the solution you'd like

Provide a UI as setting (option) to enable this transform by giving user the full control over it. We don't want to make it default behavior which would cause breaking changes to other services.

Describe alternatives you've considered

As a workaround, you can have OTEL collector in middle such as it processes and transforms the JSON log body into JSON string and forwards it to destination/target endpoint.

Hasura OTEL Exporter -> OTEL Collector -> Desired Observability Tool (New Relic Endpoint)
@meetzaveri meetzaveri added the k/enhancement New feature or improve an existing feature label Mar 13, 2024
@meetzaveri
Copy link
Member Author

Update:

While we figured out, that New Relic OTEL compliant receiver must be doing non-standard thing by not parsing the JSON body from log. Essentially, if New Relic is providing OTEL endpoint , which we can directly use in Hasura's OTEL exporter, then it should be responsible for transforming JSON object into JSON string. There shouldn't be need of having OTEL collector in first place if New Relic was providing fully functioning OTEL endpoint.

We will reach out to New Relic support to file this as a bug and update the GH issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant