Using JWT fields in trace `custom_tags`

I’m using tracing with the Datadog backend to great effect, however, I’d like to add some fields to the envoy.proxy spans based on the content of the JWT tokens in requests. I can see that I can only include request headers, but not such fields – although the information should be available in the dynamic metadata?

Has anyone ever looked into this?