ExDatadogPlug v0.6.0 ExDatadog.Plug View Source

A plug for logging response time in datadog. To use it, just plug it into the desired module.

plug ExDatadog.Plug, prefix: "your-service", method: true, query: []

Options

  • :prefix - the prefix you want to put for this stat. Default is plug.
  • :method - a boolean value to include the method in the tag list. Default is false.
  • :path - a boolean value to include the path in the tag list. Default is false.
  • :query - a list of strings to include specific query string in the tag list. [] will generate all query params as tags. Default is nil (do not generate tag for query string)
  • :statix_module - a module value

Link to this section Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Link to this section Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.