github.com/mier85/go-sensor@v1.30.1-0.20220920111756-9bf41b3bc7e0/sensor_test.go (about)

     1  // (c) Copyright IBM Corp. 2021
     2  // (c) Copyright Instana Inc. 2020
     3  
     4  package instana_test
     5  
     6  import (
     7  	instana "github.com/mier85/go-sensor"
     8  	"os"
     9  	"testing"
    10  )
    11  
    12  const TestServiceName = "test_service"
    13  
    14  func TestMain(m *testing.M) {
    15  	instana.InitSensor(&instana.Options{
    16  		Service: TestServiceName,
    17  		Tracer: instana.TracerOptions{
    18  			CollectableHTTPHeaders: []string{"x-custom-header-1", "x-custom-header-2"},
    19  		},
    20  	})
    21  
    22  	os.Exit(m.Run())
    23  }