Pion + PeerMetrics

Pion integration

With Pion or ion-sdk-js, initialize PeerMetrics first and then continue with signaling so session monitoring starts before transport setup begins.

This is one of the simplest integrations: prepare PeerMetrics, enable the Pion integration, and continue with your normal signaling client.

PeerMetrics SDK

Quick setup

  • Initialize PeerMetrics for the user and conference.
  • Register the Pion SDK integration.
  • Keep your normal call setup flow.

How it works

  1. Initialize PeerMetrics before creating your Pion-backed client session.
  2. Enable the Pion integration in addSdkIntegration().
  3. Start signaling and joining normally after PeerMetrics is ready.
  4. Optionally add SFU labels for better server attribution in reports.
Example
const peerMetrics = new PeerMetrics({
  apiKey: 'YOUR_API_KEY',
  userId: user.id,
  conferenceId: roomId
})

peerMetrics.addSdkIntegration({
  pion: {
    serverId: 'pion-sfu-na',
    serverName: 'Pion SFU North America'
  }
})

const signal = new IonSFUJSONRPCSignal('wss://ion-sfu:7000/ws')
const client = new Client(signal)

Based on the PeerMetrics SDK integration docs.

Create rock solid products

The tool that every team needs to build the perfect WebRTC integration
  • Guess work in product
    Don't leave your development to guess work

    Crafting the perfect product is a challenge on its own. Adding WebRTC in the mix makes it even harder.

    Make sure you and your team have all the data you need to build the best video and audio calling product.

  • Developer relaxing
    Fix problems before they appear

    Even with a great product, network conditions change. Make sure you have the tools to adapt and resolve issues quickly.

  • Happy support team
    Make sure your support team shines

    Your support team should never guess what happened. Give them the tools to fix problems in real time.