You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-25 22:41:46 +02:00
Update example to use jaeger exporter and update Readme (#143)
* update http example to use jaeger exporter and sdk. * update image location. * remove extra parameters for jaeger.
This commit is contained in:
@@ -186,9 +186,12 @@ func TestSetSpanAttributes(t *testing.T) {
|
||||
TraceID: tid,
|
||||
TraceOptions: 0x1,
|
||||
},
|
||||
ParentSpanID: sid,
|
||||
Name: "span0",
|
||||
Attributes: map[string]interface{}{"key1": core.Value{Type: core.STRING, String: "value1"}},
|
||||
ParentSpanID: sid,
|
||||
Name: "span0",
|
||||
Attributes: []core.KeyValue{{
|
||||
Key: core.Key{Name: "key1"},
|
||||
Value: core.Value{Type: core.STRING, String: "value1"},
|
||||
}},
|
||||
HasRemoteParent: true,
|
||||
}
|
||||
if diff := cmp.Diff(got, want); diff != "" {
|
||||
@@ -217,9 +220,16 @@ func TestSetSpanAttributesOverLimit(t *testing.T) {
|
||||
},
|
||||
ParentSpanID: sid,
|
||||
Name: "span0",
|
||||
Attributes: map[string]interface{}{
|
||||
"key1": core.Value{Type: core.STRING, String: "value3"},
|
||||
"key4": core.Value{Type: core.STRING, String: "value4"}},
|
||||
Attributes: []core.KeyValue{
|
||||
{
|
||||
Key: core.Key{Name: "key1"},
|
||||
Value: core.Value{Type: core.STRING, String: "value3"},
|
||||
},
|
||||
{
|
||||
Key: core.Key{Name: "key4"},
|
||||
Value: core.Value{Type: core.STRING, String: "value4"},
|
||||
},
|
||||
},
|
||||
HasRemoteParent: true,
|
||||
DroppedAttributeCount: 1,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user