View Source Sleipnir.Client.Tesla (sleipnir v0.1.1)

Tesla client for Sleipnir.

Link to this section Summary

Functions

Returns a Tesla client set up to send logs to Loki.

Link to this section Types

@type base_url() :: String.t()
@type opts() :: Keyword.t()

Link to this section Functions

Link to this function

new(base_url, opts \\ [])

View Source
@spec new(base_url(), opts()) :: Tesla.Client.t()

Returns a Tesla client set up to send logs to Loki.

options

Options

  • :org_id - Must be specified when using Loki in multi-tenancy mode (i.e. auth_enabled is true). Sets the X-Scope_orgID header accordingly Sets the X-Scope-OrgID header accordingly