Socket
Socket
Sign inDemoInstall

@opentelemetry/semantic-conventions

Package Overview
Dependencies
0
Maintainers
4
Versions
106
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.24.1-alpha.5 to 0.24.1-alpha.7

4

package.json
{
"name": "@opentelemetry/semantic-conventions",
"version": "0.24.1-alpha.5+b69ff35e",
"version": "0.24.1-alpha.7+365d502e",
"description": "OpenTelemetry semantic conventions",

@@ -58,3 +58,3 @@ "main": "build/src/index.js",

},
"gitHead": "b69ff35e90a33d20a0154dcd326f1467dfd39e2a"
"gitHead": "365d502eaa0ba1f9799998f050d36073e943032e"
}

@@ -19,7 +19,7 @@ # OpenTelemetry Semantic Conventions

```ts
import { GeneralAttribute } from '@opentelemetry/semantic-conventions';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
const span = tracer.startSpan().startSpan(spanName, spanOptions)
.setAttributes({
[GeneralAttribute.NET_PEER_HOSTNAME]: 'localhost',
[SemanticAttributes.NET_PEER_NAME]: 'localhost',
});

@@ -26,0 +26,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc