question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynatrace dimension length constraint not honored

See original GitHub issue

Hi,

We are enabling Dynatrace Register for micrometer. Below is the output we get. It seems like the URI is too long for the dimension accepted in Dynatrace. Any suggested workarounds for this?

2020-11-05 14:02:09.920 lvl=ERROR : failed to send metrics to dynatrace: { "error": { "code": 400, "message": "Constraints violated.", "constraintViolations": [ { "path": "series[68].dimensions.uri", "message": "Value exceeds maximum length.Maximum value length: 128 (inclusively).", "parameterLocation": "PAYLOAD_BODY", "location": null }, { "path": "series[70].dimensions.uri", "message": "Value exceeds maximum length.Maximum value length: 128 (inclusively).", "parameterLocation": "PAYLOAD_BODY", "location": null }, { "path": "series[69].dimensions.uri", "message": "Value exceeds maximum length.Maximum value length: 128 (inclusively).", "parameterLocation": "PAYLOAD_BODY", "location": null }, { "path": "series[67].dimensions.uri", "message": "Value exceeds maximum length.Maximum value length: 128 (inclusively).", "parameterLocation": "PAYLOAD_BODY", "location": null } ] } }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
pirgeocommented, Apr 23, 2021

Hi @jonatan-ivanov, I implemented a fix for this (see #2575).

1reaction
jonatan-ivanovcommented, Apr 20, 2021

I reached out to the Dynatrace OSS Team, here’s their answer:

It is a hardcoded limit of 128 for the length of a dimension value, so the message in the error response from the API is correct. The limit is not configurable. In this case, truncating would make sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenTelemetry Metrics Limitations | Dynatrace Docs
The minimum and maximum total length of a dimension key. If the maximum length is exceeded, the dimension key is truncated to 100...
Read more >
Re: Dynatrace OneAgent is removing the Response header ...
Dear All,. We are facing a strange issue here. Once we enabled OneAgent on the node, Application is not working ,once we disabled...
Read more >
Solved: Re: Micrometer.DynatraceMetricsRegistry
It means that you have already created custom metrics on this ID and you cannot redefine dimensions for it. You should change id...
Read more >
Microsoft SQL Server monitoring | Dynatrace Docs
Monitor a Microsoft SQL Server instance remotely using the ActiveGate extension. Prerequisites. Microsoft SQL Server with mainstream or extended support by ...
Read more >
Firewall constraints for RUM | Dynatrace Docs
See Cookies for more information on how Dynatrace uses cookies. Cookie, Max size, Purpose. dtCookie, No set limitation, but usually less than 100...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found