Skip to content

Commit

Permalink
add config option to toggle customEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
iamemilio committed Nov 2, 2022
1 parent bb76c82 commit 9a02b17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -51,6 +51,8 @@ jobs:
- go-version: 1.13.x
dirs: _integrations/nrecho
pin: github.com/labstack/echo@v3.3.10
- go-version: 1.13.x
dirs: _integrations/nrgin/v1
- go-version: 1.13.x
dirs: _integrations/nrgorilla/v1
- go-version: 1.13.x
Expand Down
5 changes: 5 additions & 0 deletions v3/newrelic/config_options.go
Expand Up @@ -47,6 +47,11 @@ func ConfigCustomInsightsEventsMaxSamplesStored(limit int) ConfigOption {
return func(cfg *Config) { cfg.CustomInsightsEvents.MaxSamplesStored = limit }
}

// ConfigCustomInsightsEventsEnabled enables or disables the collection of custom insight events.
func ConfigCustomInsightsEventsEnabled(enabled bool) ConfigOption {
return func(cfg *Config) { cfg.CustomInsightsEvents.Enabled = enabled }
}

// ConfigDistributedTracerReservoirLimit alters the sample reservoir size (maximum
// number of span events to be collected) for distributed tracing instead of
// using the built-in default.
Expand Down

0 comments on commit 9a02b17

Please sign in to comment.