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

request attributes for Node.js

Seba-Gadrid
Visitor

What are the alternatives to request attributes for Node.js?
In the header they use a JSON Web Token, from which I could extract information after decoding it. Will this be possible with attributes?

3 REPLIES 3

RohitBisht
Dynatrace Mentor
Dynatrace Mentor

Hi @Seba-Gadrid ,

It is possible to set request attributes using HTTP headers. here is information from the document.
https://docs.dynatrace.com/docs/shortlink/request-attributes-web-requests#request-attribute-sources-... 

Technology-independent sources, such as:

  • HTTP POST parameters
  • Client IP addresses
    The value of the first matching header is reported.
  • HTTP request and response headers
  • Web request URL or one of its constituents, like the path or a query parameter

In the last two cases, you can also choose the side of the web request on which to capture and store the attribute.

RB

Seba-Gadrid
Visitor

Hello @RohitBisht 

The information I need comes in a bearer token, will it be possible to extract it from there?

Ideally we should be able to capture as request headers are supported. Best is to test it out.

RB

Featured Posts