Go Agent 2.0

Released on: 
Tuesday, May 15, 2018 - 12:10

2.0.0

  • The End() functions defined on the Segment, DatastoreSegment, and ExternalSegment types now receive the segment as a pointer, rather than as a value. This prevents unexpected behaviour when a call to End() is deferred before one or more fields are changed on the segment.

    In practice, this is likely to only affect this pattern:

    defer newrelic.DatastoreSegment{
      // ...
    }.End()
    

    Instead, you will now need to separate the literal from the deferred call:

    ds := newrelic.DatastoreSegment{
      // ...
    }
    defer ds.End()
    

    When creating custom and external segments, we recommend using newrelic.StartSegment() and newrelic.StartExternalSegment(), respectively.

  • Added GoDoc badge to README. Thanks to @mrhwick for the contribution!

  • Config.UseTLS configuration setting has been removed to increase security. TLS will now always be used in communication with New Relic Servers.