Skip to content

Commit 04c8eea

Browse files
committed
pdata: mark old function as deprecated
Signed-off-by: Florian Lehner <[email protected]>
1 parent 7178c06 commit 04c8eea

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pdata/pprofile/profile.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)