git.colasdn.top/newrelic/go-agent@v3.26.0+incompatible/internal/crossagent/cross_agent_tests/data_collection_server_configuration.json (about)

     1  [
     2    {
     3      "test_name": "collect_span_events_disabled",
     4      "connect_response": {
     5        "collect_span_events": false
     6      },
     7      "expected_data_seen": [
     8        {
     9          "type": "span_event",
    10          "count": 0
    11        }
    12      ],
    13      "expected_endpoint_calls": [
    14        {
    15          "method": "span_event_data",
    16          "count": 0
    17        }
    18      ]
    19    },
    20    {
    21      "test_name": "collect_span_events_enabled",
    22      "connect_response": {
    23        "collect_span_events": true
    24      },
    25      "expected_data_seen": [
    26        {
    27          "type": "span_event",
    28          "count": 1
    29        }
    30      ],
    31      "expected_endpoint_calls": [
    32        {
    33          "method": "span_event_data",
    34          "count": 1
    35        }
    36      ]
    37    },
    38    {
    39      "test_name": "collect_custom_events_disabled",
    40      "connect_response": {
    41        "collect_custom_events": false
    42      },
    43      "expected_data_seen": [
    44        {
    45          "type": "custom_event",
    46          "count": 0
    47        }
    48      ],
    49      "expected_endpoint_calls": [
    50        {
    51          "method": "custom_event_data",
    52          "count": 0
    53        }
    54      ]
    55    },
    56    {
    57      "test_name": "collect_custom_events_enabled",
    58      "connect_response": {
    59        "collect_custom_events": true
    60      },
    61      "expected_data_seen": [
    62        {
    63          "type": "custom_event",
    64          "count": 1
    65        }
    66      ],
    67      "expected_endpoint_calls": [
    68        {
    69          "method": "custom_event_data",
    70          "count": 1
    71        }
    72      ]
    73    },
    74    {
    75      "test_name": "collect_analytics_events_disabled",
    76      "connect_response": {
    77        "collect_analytics_events": false
    78      },
    79      "expected_data_seen": [
    80        {
    81          "type": "transaction_event",
    82          "count": 0
    83        }
    84      ],
    85      "expected_endpoint_calls": [
    86        {
    87          "method": "analytic_event_data",
    88          "count": 0
    89        }
    90      ]
    91    },
    92    {
    93      "test_name": "collect_analytics_events_enabled",
    94      "connect_response": {
    95        "collect_analytics_events": true
    96      },
    97      "expected_data_seen": [
    98        {
    99          "type": "transaction_event",
   100          "count": 1
   101        }
   102      ],
   103  
   104      "expected_endpoint_calls": [
   105        {
   106          "method": "analytic_event_data",
   107          "count": 1
   108        }
   109      ]
   110    },
   111    {
   112      "test_name": "collect_error_events_disabled",
   113      "connect_response": {
   114        "collect_error_events": false
   115      },
   116      "expected_data_seen": [
   117        {
   118          "type": "error_event",
   119          "count": 0
   120        }
   121      ],
   122      "expected_endpoint_calls": [
   123        {
   124          "method": "error_event_data",
   125          "count": 0
   126        }
   127      ]
   128    },
   129    {
   130      "test_name": "collect_error_events_enabled",
   131      "connect_response": {
   132        "collect_error_events": true
   133      },
   134      "expected_data_seen": [
   135        {
   136          "type": "error_event",
   137          "count": 1
   138        }
   139      ],
   140      "expected_endpoint_calls": [
   141        {
   142          "method": "error_event_data",
   143          "count": 1
   144        }
   145      ]
   146    },
   147    {
   148      "test_name": "collect_errors_disabled",
   149      "connect_response": {
   150        "collect_errors": false
   151      },
   152      "expected_data_seen": [
   153        {
   154          "type": "error_trace",
   155          "count": 0
   156        }
   157      ],
   158      "expected_endpoint_calls": [
   159        {
   160          "method": "error_data",
   161          "count": 0
   162        }
   163      ]
   164    },
   165    {
   166      "test_name": "collect_errors_enabled",
   167      "connect_response": {
   168        "collect_errors": true
   169      },
   170      "expected_data_seen": [
   171        {
   172          "type": "error_trace",
   173          "count": 1
   174        }
   175      ],
   176      "expected_endpoint_calls": [
   177        {
   178          "method": "error_data",
   179          "count": 1
   180        }
   181      ]
   182    },
   183    {
   184      "test_name": "collect_traces_disabled",
   185      "connect_response": {
   186        "collect_traces": false
   187      },
   188      "expected_data_seen": [
   189        {
   190          "type": "transaction_trace",
   191          "count": 0
   192        }
   193      ],
   194      "expected_endpoint_calls": [
   195        {
   196          "method": "transaction_sample_data",
   197          "count": 0
   198        }
   199      ]
   200    },
   201    {
   202      "test_name": "collect_traces_enabled",
   203      "connect_response": {
   204        "collect_traces": true
   205      },
   206      "expected_data_seen": [
   207        {
   208          "type": "transaction_trace",
   209          "count": 1
   210        }
   211      ],
   212      "expected_endpoint_calls": [
   213        {
   214          "method": "transaction_sample_data",
   215          "count": 1
   216        }
   217      ]
   218    }
   219  ]