Skip to content

Commit

Permalink
refactor(otlp-transformer): rename SpanAttributes to Attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
llc1123 committed Apr 18, 2023
1 parent 74db9a4 commit 9d87fd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions experimental/packages/otlp-transformer/src/common/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { SpanAttributes } from '@opentelemetry/api';
import { IAnyValue, IKeyValue } from './types';
import type { Attributes } from '@opentelemetry/api';
import type { IAnyValue, IKeyValue } from './types';

export function toAttributes(attributes: SpanAttributes): IKeyValue[] {
export function toAttributes(attributes: Attributes): IKeyValue[] {
return Object.keys(attributes).map(key => toKeyValue(key, attributes[key]));
}

Expand Down

0 comments on commit 9d87fd9

Please sign in to comment.