Skip to content

[feature] edgeUrl support for Axiom adapter #46

@gabrielelpidio

Description

@gabrielelpidio

Description

Hey, awesome library! At Axiom, we recently added edge deployments and subsequently added support for them in the SDKs, such as axiom-js. Would love to get support for the adapter in here too, happy to open up a PR with a proposal 😄

Proposed Solution

I imagine the surface would look really similar to axiom-js, meaning something like

export interface BaseAxiomConfig {
  dataset: string
  token: string
  orgId?: string
  timeout?: number
}

interface EdgeAxiomConfig extends BaseAxiomConfig { 
  edgeUrl?: string
}

interface EndpointAxiomConfig extends BaseAxiomConfig {
  url?: string
}
const url = edgeUrl ?? url ?? "https://api.axiom.co"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions