Skip to content

Conversation

@florianl
Copy link
Contributor

Description

Complementary change to open-telemetry/opentelemetry-collector#14188.

Link to tracking issue

Fixes

Testing

Documentation

binary.LittleEndian.PutUint64(id[:8], uint64(i))
profile.SetProfileID(id)
profile.SetDuration(pcommon.NewTimestampFromTime(time.Now().Add(time.Second)))
profile.SetDurationNano(1000000000)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
profile.SetDurationNano(1000000000)
profile.SetDurationNano((1 * time.Second).Nanoseconds())

This looks much more readable.

The same also applies to all the other similar occurrences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants