cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cloudevents ingestion

JPRio1
Visitor

Hello,

I want to use the bizevents ingest api to ingest data from kafka sink connector. The doc (https://docs.dynatrace.com/docs/platform-modules/business-analytics/ba-api-ingest) says that the Content-Type should be application/json or application/cloudevent+json or application/cloudevent-batch+json.

According to the standard (https://github.com/cloudevents/spec/blob/main/cloudevents/primer.md), the Content-type should be application/cloudevents+json (or application/cloudevents-batch+json) (note the "s" after cloudevent). And, in fact, the sink connector sends requests with application/cloudevents+json, and those requests are rejected by Dynatrace ({"error":{"code":415,"message":"Unsupported/Missing 'Content-Type' header."}}).

Is there any plan to support the "application/cloudevents+json" Content-type ? Is there a workaround ?

Regards,

JP

 

2 REPLIES 2

mark_bley
Dynatrace Pro
Dynatrace Pro

That error (415) indicates that there is no outgoing header, the Content-Type header is completely missing.

This should have nothing to do with this spelling cloudevent(s) as both are accepted.

Can you verify how exactly the outgoing call from Kafka sink looks ?

mark_bley_0-1712237882767.png

 

JPRio1
Visitor

Hello Mark,

The Content-Type was provided, but not supported on DT side. The issue has been confirmed and will be addressed in 1.289 ("In alignment with the CloudEvents specification, the "Business events API" has been standardized to accept `cloudevents` (in addition to `cloudevent`) as valid content type. (PPX-1548)").

JP

Featured Posts