Remove serverless config option.
@@ -28,7 +28,6 @@ type TraceContextTestCase struct {
RaisesException bool `json:"raises_exception"`
ForceSampledTrue bool `json:"force_sampled_true"`
SpanEventsEnabled bool `json:"span_events_enabled"`
- ServerlessMode bool `json:"serverlessmode_enabled"`
TransportType string `json:"transport_type"`
InboundHeaders []map[string]string `json:"inbound_headers"`
OutboundPayloads []fieldExpect `json:"outbound_payloads,omitempty"`
@@ -70,9 +69,6 @@ func runW3CTestCase(t *testing.T, tc TraceContextTestCase) {
if !tc.SpanEventsEnabled {
configCallback = disableSpanEventsConfig
}
- if tc.ServerlessMode {
- configCallback = serverlessConfig(tc)
- }
app := testApp(func(reply *internal.ConnectReply) {
reply.AccountID = tc.AccountID
@@ -173,16 +169,6 @@ func disableSpanEventsConfig(cfg *Config) {
cfg.SpanEvents.Enabled = false
}
-func serverlessConfig(tc TraceContextTestCase) ConfigOption {
- return func(cfg *Config) {
- cfg.CrossApplicationTracer.Enabled = false
- cfg.DistributedTracer.Enabled = true
- cfg.ServerlessMode.AccountID = tc.AccountID
- cfg.ServerlessMode.TrustedAccountKey = tc.TrustedAccountKey
- cfg.ServerlessMode.Enabled = true
- }
-}
-
// getTransport ensures that our transport names match cross agent test values.
func getTransportType(transport string) TransportType {
switch TransportType(transport) {
