Skip to content

Commit

Permalink
better name
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Oct 24, 2024
1 parent e84dadc commit 8afdd7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class AgentProxyCiVisibilityExporter extends CiVisibilityExporter {
evpProxyPrefix
})
if (canFowardLogs && config.isTestDynamicInstrumentationEnabled) {
const LogsWriter = require('../agentless/logs-writer')
this._logsWriter = new LogsWriter({
const DynamicInstrumentationLogsWriter = require('../agentless/di-logs-writer')
this._logsWriter = new DynamicInstrumentationLogsWriter({
url: this._url,
tags,
isAgentProxy: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const { JSONEncoder } = require('../../encode/json-encoder')

const BaseWriter = require('../../../exporters/common/writer')

// Writer to encode and send logs to both the logs intake directly and the
// Writer used by the integration between Dynamic Instrumentation and Test Visibility
// It is used to encode and send logs to both the logs intake directly and the
// `/debugger/v1/input` endpoint in the agent, which is a proxy to the logs intake.
class LogsWriter extends BaseWriter {
class DynamicInstrumentationLogsWriter extends BaseWriter {
constructor ({ url, isAgentProxy = false }) {
super(...arguments)
this._url = url
Expand Down Expand Up @@ -47,4 +48,4 @@ class LogsWriter extends BaseWriter {
}
}

module.exports = LogsWriter
module.exports = DynamicInstrumentationLogsWriter
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class AgentlessCiVisibilityExporter extends CiVisibilityExporter {
this._coverageWriter = new CoverageWriter({ url: this._coverageUrl })

if (config.isTestDynamicInstrumentationEnabled) {
const LogsWriter = require('./logs-writer')
const DynamicInstrumentationLogsWriter = require('./di-logs-writer')
this._logsUrl = url || new URL(`https://http-intake.logs.${site}`)
this._logsWriter = new LogsWriter({ url: this._logsUrl, tags }) // TODO: pass tags? Pass other config?
this._logsWriter = new DynamicInstrumentationLogsWriter({ url: this._logsUrl, tags })
}

this._apiUrl = url || new URL(`https://api.${site}`)
Expand Down

0 comments on commit 8afdd7c

Please sign in to comment.