Skip to content

Commit

Permalink
change function visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Kushch committed Nov 30, 2021
1 parent 50f6c84 commit 64c0aa8
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 85 deletions.
12 changes: 6 additions & 6 deletions json_span.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type Span struct {
}

func newSpan(span *spanS) Span {
data := RegisteredSpanType(span.Operation).ExtractData(span)
data := RegisteredSpanType(span.Operation).extractData(span)
sp := Span{
TraceID: span.context.TraceID,
TraceIDHi: span.context.TraceIDHi,
Expand Down Expand Up @@ -231,8 +231,8 @@ type SDKSpanData struct {
sk SpanKind
}

// NewSDKSpanData initializes a new SDK span data from a tracer span
func NewSDKSpanData(span *spanS) SDKSpanData {
// newSDKSpanData initializes a new SDK span data from a tracer span
func newSDKSpanData(span *spanS) SDKSpanData {
sk := IntermediateSpanKind

switch span.Tags[string(ext.SpanKind)] {
Expand All @@ -248,7 +248,7 @@ func NewSDKSpanData(span *spanS) SDKSpanData {

return SDKSpanData{
Service: span.Service,
Tags: NewSDKSpanTags(span, sk.String()),
Tags: newSDKSpanTags(span, sk.String()),
sk: sk,
}
}
Expand All @@ -273,8 +273,8 @@ type SDKSpanTags struct {
Custom map[string]interface{} `json:"custom,omitempty"`
}

// NewSDKSpanTags extracts SDK span tags from a tracer span
func NewSDKSpanTags(span *spanS, spanType string) SDKSpanTags {
// newSDKSpanTags extracts SDK span tags from a tracer span
func newSDKSpanTags(span *spanS, spanType string) SDKSpanTags {
tags := SDKSpanTags{
Name: span.Operation,
Type: spanType,
Expand Down
Loading

0 comments on commit 64c0aa8

Please sign in to comment.