Jaeger SamplingManager API

The SamplingManager API from Jaeger — 2 operation(s) for samplingmanager.

Operations 2

POST /api/v2/samplingStrategy Get Sampling Strategy #
GET /sampling Get Sampling Strategy (Legacy) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/jaeger-io-samplingmanager-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

jaeger-io-samplingmanager-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Jaeger Collector API (api_v2) CollectorService Sampling Manager API
  version: '2.0'
  description: 'Jaeger Collector ingest API. The Collector accepts span batches over gRPC

    on port 14250 (`jaeger.api_v2.CollectorService`) and over the HTTP gateway

    at `/api/v2/spans`. Jaeger v2 (since November 2024) also accepts OTLP

    natively on ports 4317 (gRPC) and 4318 (HTTP) and Zipkin on 9411; this

    spec documents the native legacy api_v2 surface.'
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://localhost:14268
  description: Jaeger Collector legacy HTTP endpoint
tags:
- name: SamplingManager
paths:
  /api/v2/samplingStrategy:
    post:
      summary: Get Sampling Strategy
      description: 'Retrieve the sampling strategy for the named service. The gRPC equivalent

        is `jaeger.api_v2.SamplingManager/GetSamplingStrategy`.'
      operationId: getSamplingStrategy
      tags:
      - SamplingManager
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SamplingStrategyParameters'
      responses:
        '200':
          description: Sampling strategy for the requested service.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SamplingStrategyResponse'
  /sampling:
    get:
      summary: Get Sampling Strategy (Legacy)
      description: 'Legacy HTTP form used by older Jaeger SDKs. The Collector / agent

        returns the same SamplingStrategyResponse JSON; service name is given

        via the `service` query parameter.'
      operationId: getSamplingStrategyLegacy
      tags:
      - SamplingManager
      parameters:
      - name: service
        in: query
        required: true
        schema:
          type: string
        description: Service name to look up.
      responses:
        '200':
          description: Sampling strategy for the requested service.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SamplingStrategyResponse'
components:
  schemas:
    RateLimitingSamplingStrategy:
      type: object
      properties:
        maxTracesPerSecond:
          type: integer
          format: int32
          description: Maximum number of traces sampled per second per service instance.
    SamplingStrategyResponse:
      type: object
      description: 'Union-style response — exactly one of `probabilisticSampling`,

        `rateLimitingSampling`, or `operationSampling` will be populated.'
      properties:
        strategyType:
          type: string
          enum:
          - PROBABILISTIC
          - RATE_LIMITING
        probabilisticSampling:
          $ref: '#/components/schemas/ProbabilisticSamplingStrategy'
        rateLimitingSampling:
          $ref: '#/components/schemas/RateLimitingSamplingStrategy'
        operationSampling:
          $ref: '#/components/schemas/PerOperationSamplingStrategies'
    ProbabilisticSamplingStrategy:
      type: object
      properties:
        samplingRate:
          type: number
          format: double
          minimum: 0
          maximum: 1
          description: Sampling probability in the range [0.0, 1.0].
    SamplingStrategyParameters:
      type: object
      required:
      - serviceName
      properties:
        serviceName:
          type: string
          description: Required service identifier.
    PerOperationSamplingStrategies:
      type: object
      properties:
        defaultSamplingProbability:
          type: number
          format: double
        defaultLowerBoundTracesPerSecond:
          type: number
          format: double
        defaultUpperBoundTracesPerSecond:
          type: number
          format: double
        perOperationStrategies:
          type: array
          items:
            $ref: '#/components/schemas/OperationSamplingStrategy'
    OperationSamplingStrategy:
      type: object
      properties:
        operation:
          type: string
        probabilisticSampling:
          $ref: '#/components/schemas/ProbabilisticSamplingStrategy'