Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove dns hostname
  • Loading branch information
svrnm committed May 26, 2021
commit 0203d9d5218f0b48cb37cf818c551e039d0780da
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ export enum AttributeNames {
DNS_ERROR_CODE = 'dns.error_code',
DNS_ERROR_NAME = 'dns.error_name',
DNS_ERROR_MESSAGE = 'dns.error_message',
DNS_HOSTNAME = 'dns.hostname',
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
} from './types';
import * as utils from './utils';
import { VERSION } from './version';
import { AttributeNames } from './enums/AttributeNames';

/**
* Dns instrumentation for Opentelemetry
Expand Down Expand Up @@ -113,9 +112,6 @@ export class DnsInstrumentation extends InstrumentationBase<Dns> {
const name = utils.getOperationName('lookup');
const span = plugin.tracer.startSpan(name, {
kind: SpanKind.CLIENT,
attributes: {
[AttributeNames.DNS_HOSTNAME]: hostname,
},
});

const originalCallback = args[argsCount - 1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ export const assertSpan = (
span.attributes[AttributeNames.DNS_ERROR_MESSAGE],
span.status.message
);
assert.strictEqual(
span.attributes[AttributeNames.DNS_HOSTNAME],
validations.hostname
);

validations.addresses.forEach((_, i) => {
assert.strictEqual(
Expand Down