We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7178c06 commit 04c8eeaCopy full SHA for 04c8eea
pdata/pprofile/profile.go
@@ -0,0 +1,19 @@
1
+// Copyright The OpenTelemetry Authors
2
+// SPDX-License-Identifier: Apache-2.0
3
+
4
+package pprofile
5
6
+import "go.opentelemetry.io/collector/pdata/pcommon"
7
8
+// Duration returns the duration associated with this Profile.
9
+//
10
+// Deprecated: Use Profile.DurationNano instead.
11
+func (ms Profile) Duration() pcommon.Timestamp {
12
+ return pcommon.Timestamp(0)
13
+}
14
15
+// SetDuration replaces the duration associated with this Profile.
16
17
+// Deprecated: Use Profile.SetDurationNano instead.
18
+func (ms Profile) SetDuration(v pcommon.Timestamp) {
19
0 commit comments