Skip to content

Releases: palantir/go-baseapp

v0.5.2

11 Aug 16:11
8d9d44b
Compare
Choose a tag to compare

Other Changes

  • Fix nil pointer panic when configuring global labels in the Prometheus exporter (#202)
  • Minor dependency and build tool upgrades

v0.5.1

24 Jul 20:44
026c830
Compare
Choose a tag to compare

Add Prometheus metrics emitter (#187)

The appmetrics/emitter/prometheus package provides a prometheus.Collector implementation to expose the metrics in a rcrowley/go-metrics registry and a helper function to register an HTTP handler using the collector. The collector transforms metrics to a format that better matches Prometheus best practices; see the package documentation for details.

Other Changes

  • Minor dependency and build tool upgrades

v0.5.0

29 Jun 17:36
8fcf9b4
Compare
Choose a tag to compare

Add the appmetrics package (#182)

The appmetrics package provides utilities to define and create metrics struct. A metrics struct contains all the metric instances (counters, gauges, histograms, etc.) for a package or application and defines how those metrics appear in a registry. For example:

type Metrics struct {
    Requests       metrics.Counter `metric:"requests"`
    FailedRequests metrics.Counter `metric:"requests.error"`
}

Applications usually define a single global instance of their metrics struct, which they reference in all other packages that report metrics. See the package documentation for more details and examples.

Add ability to ignore requests in logs and metrics (#185)

Calling baseapp.Ignore(*http.Request, baseapp.IgnoreRule) from a request handler can disable logging or metrics for a particular request. This may be useful if there are certain common requests, like health checks, that are uninteresting or distracting. Custom middleware can check for ignored requests using the baseapp.IsIgnored(*http.Request, baseapp.IgnoreRule) bool function.

Other Changes

  • Report request rates and latencies by status code in the default metrics (#181)
  • Add the ability to change metrics.Timer units when exporting metrics to Datadog (#184)
  • Move the baseapp/datadog package to appmetrics/emitter/datadog and deprecate the old package (#183)
  • Minor dependency and build tool upgrades

v0.4.2

29 Mar 16:56
03f3d06
Compare
Choose a tag to compare

Other Changes

  • Minor dependency and build tool updates
  • Run tests with Go 1.20

v0.4.1

18 Oct 21:38
9033758
Compare
Choose a tag to compare

Other Changes

  • Add WithEntityID option to the saml package (#104)
  • Minor dependency and build tool updates
  • Run tests with Go 1.19

v0.4.0

14 Mar 23:05
74e8fa9
Compare
Choose a tag to compare

Handle additional types of stack traces in errfmt.Print (#87)

In addition to stack traces from pkg/errors, print stacks for errors that define a StackTrace() []runtime.Frame method. Errors in other packages may implement this interface to add stack trace support. This change also applies to the default error formatter for logs.

Build with Go 1.17 (#77)

While the library does not currently use any Go 1.17 features, this is the only version we test against and is now reflected in go.mod.

Other Changes

  • Upgrade DataDog/datadog-go to v5 (#73)
  • Other minor dependency and build tool updates

v0.3.1

11 Dec 20:23
487c6c0
Compare
Choose a tag to compare

Other Changes

  • Clear session_state parameter when processing OAuth2 redirects (#67)
  • Upgrade crewjam/saml to v0.4.6 to remove dependency on dgrijalva/jwt-go (#70)
  • Other minor dependency upgrades

v0.3.0

15 Sep 10:16
d48a1b1
Compare
Choose a tag to compare

Improve defaults for TLS

  • Default to TLS 1.2 as minimum version (#62)
  • Add cipher list from Mozilla recommended (#63)

v0.2.4

15 Jul 19:55
5faa2cc
Compare
Choose a tag to compare

Other Changes

  • Add parameter to force authentication when making SAML requests (#59)

v0.2.3

27 Jan 00:00
dfa6e11
Compare
Choose a tag to compare

Add auth/oauth2 package (#47)

This package implements a handler for the standard 3-leg OAuth2 flow. It is based on a similar package from palantir/go-githubapp, but removes any GitHub-specific components.