title: Specifying a custom user agent using Dataflow
body: <p>I'm trying to customize the user agent used for the different GCP calls through <a href="https://beam.apache.org/releases/javadoc/2.8.0/org/apache/beam/sdk/options/PipelineOptions.html#setUserAgent-java.lang.String-" rel="nofollow noreferrer">PipelineOptions.setUserAgent</a>.</p>
  
  <p>However, it seems to always fall back to <code>Apache_Beam_SDK_for_Java/2.6.0</code>.</p>
  
  <p>Looking at the Beam codebase it seems the user agent is forced by the Dataflow runner: <a href="https://github.com/apache/beam/blob/ce9ee0b034cef66ea3845ca049770b9a354a4fd4/runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowRunner.java#L330" rel="nofollow noreferrer">https://github.com/apache/beam/blob/ce9ee0b034cef66ea3845ca049770b9a354a4fd4/runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowRunner.java#L330</a>.</p>
  
  <p>Is this intentional? Should it be customizable?</p>
  
  <p>Edit: specifying it through the <code>--userAgent</code> CLI flag doesn't seem to work either.</p>