@@ -166,7 +166,7 @@ func generateOrphanSpansFromSpans(spans ...*sentry.Span) []*sentry.Span {
166
166
return orphanSpans
167
167
}
168
168
169
- type SpanEventToSentryEventCases struct {
169
+ type spanEventToSentryEventCases struct {
170
170
testName string
171
171
errorMessage string
172
172
errorType string
@@ -221,7 +221,7 @@ func TestSpanEventToSentryEvent(t *testing.T) {
221
221
222
222
errorType := "mySampleType"
223
223
errorMessage := "Kernel Panic"
224
- testCases := []SpanEventToSentryEventCases {
224
+ testCases := []spanEventToSentryEventCases {
225
225
{
226
226
testName : "Exception Event with both exception type and message" ,
227
227
errorMessage : errorMessage ,
@@ -353,7 +353,7 @@ func TestSpanToSentrySpan(t *testing.T) {
353
353
})
354
354
}
355
355
356
- type SpanDescriptorsCase struct {
356
+ type spanDescriptorsCase struct {
357
357
testName string
358
358
// input
359
359
name string
@@ -365,7 +365,7 @@ type SpanDescriptorsCase struct {
365
365
}
366
366
367
367
func TestGenerateSpanDescriptors (t * testing.T ) {
368
- testCases := []SpanDescriptorsCase {
368
+ testCases := []spanDescriptorsCase {
369
369
{
370
370
testName : "http-client" ,
371
371
name : "/api/users/{user_id}" ,
@@ -470,7 +470,7 @@ func TestGenerateTagsFromAttributes(t *testing.T) {
470
470
assert .Equal (t , "321" , intVal )
471
471
}
472
472
473
- type SpanStatusCase struct {
473
+ type spanStatusCase struct {
474
474
testName string
475
475
// input
476
476
spanStatus ptrace.Status
@@ -481,7 +481,7 @@ type SpanStatusCase struct {
481
481
}
482
482
483
483
func TestStatusFromSpanStatus (t * testing.T ) {
484
- testCases := []SpanStatusCase {
484
+ testCases := []spanStatusCase {
485
485
{
486
486
testName : "with empty status" ,
487
487
spanStatus : ptrace .NewStatus (),
@@ -569,7 +569,7 @@ func TestStatusFromSpanStatus(t *testing.T) {
569
569
}
570
570
}
571
571
572
- type ClassifyOrphanSpanTestCase struct {
572
+ type classifyOrphanSpanTestCase struct {
573
573
testName string
574
574
// input
575
575
idMap map [sentry.SpanID ]sentry.SpanID
@@ -580,7 +580,7 @@ type ClassifyOrphanSpanTestCase struct {
580
580
}
581
581
582
582
func TestClassifyOrphanSpans (t * testing.T ) {
583
- testCases := []ClassifyOrphanSpanTestCase {
583
+ testCases := []classifyOrphanSpanTestCase {
584
584
{
585
585
testName : "with no root spans" ,
586
586
idMap : make (map [sentry.SpanID ]sentry.SpanID ),
@@ -666,7 +666,7 @@ func (t *mockTransport) Flush(_ context.Context) bool {
666
666
return true
667
667
}
668
668
669
- type PushTraceDataTestCase struct {
669
+ type pushTraceDataTestCase struct {
670
670
testName string
671
671
// input
672
672
td ptrace.Traces
@@ -675,7 +675,7 @@ type PushTraceDataTestCase struct {
675
675
}
676
676
677
677
func TestPushTraceData (t * testing.T ) {
678
- testCases := []PushTraceDataTestCase {
678
+ testCases := []pushTraceDataTestCase {
679
679
{
680
680
testName : "with no resources" ,
681
681
td : ptrace .NewTraces (),
@@ -719,7 +719,7 @@ func TestPushTraceData(t *testing.T) {
719
719
transport := & mockTransport {
720
720
called : false ,
721
721
}
722
- s := & SentryExporter {
722
+ s := & sentryExporter {
723
723
transport : transport ,
724
724
}
725
725
@@ -730,7 +730,7 @@ func TestPushTraceData(t *testing.T) {
730
730
}
731
731
}
732
732
733
- type TransactionFromSpanMarshalEventTestCase struct {
733
+ type transactionFromSpanMarshalEventTestCase struct {
734
734
testName string
735
735
// input
736
736
span * sentry.Span
@@ -741,7 +741,7 @@ type TransactionFromSpanMarshalEventTestCase struct {
741
741
// This is a regression test for https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/13415
742
742
// to make sure that `parent_span_id` is not included in the serialized context if it is not defined
743
743
func TestTransactionContextFromSpanMarshalEvent (t * testing.T ) {
744
- testCases := []TransactionFromSpanMarshalEventTestCase {
744
+ testCases := []transactionFromSpanMarshalEventTestCase {
745
745
{
746
746
testName : "with parent span id" ,
747
747
span : & sentry.Span {
0 commit comments