elastic / elastic/apm-agent-java

Allow setting user_agent

Open
#3,317 3 comments 0 reactions 0 assignees View on GitHub
agent-java community
Dominant language
Java
Stars
594
Forks
338
Avg merge
1d 13h
Merged PRs (30d)
25

Description

## Is your feature request related to a problem?

`user_agent` is a standard transaction field, but I can't set it via the public API: https://www.elastic.co/guide/en/apm/server/current/exported-fields-apm-transaction.html#_user_agent_4

## Describe the solution you'd like

```java
Transaction transaction = ElasticApm.currentTransaction();
transaction.setUserAgent(...);
```

## Describe alternatives you've considered

I'm not aware of any alternatives right now, except for #433, but that's still open, too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.