• /
  • EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Go agent v2.0

May 15, 2018Download

2.0.0 New

  • 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.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.