Skip to content

Init command with linting to support collector - #93

Merged
disha-148 merged 3 commits into
instana:fi-featuresfrom
disha-148:INSTA-87885-FI-Init
May 20, 2026
Merged

Init command with linting to support collector#93
disha-148 merged 3 commits into
instana:fi-featuresfrom
disha-148:INSTA-87885-FI-Init

Conversation

@disha-148

Copy link
Copy Markdown
Collaborator

No description provided.

@morningspace morningspace left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it's still in early stage, instead of having this merged to main, we may need to bring all these changes to a separate branch, e.g.: fi-features.

Comment thread tools/integration/src/validators.ts Outdated
});

// Check for Python collector file (should end with _collector.py)
const pythonCollectorFiles = files.filter(file => file.endsWith('_collector.py'));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not have such restriction yet. Let's remove the suffix check.

Comment thread tools/integration/src/validators.ts Outdated
}

// Print all found files in one line
if (foundFiles.length > 0) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether it's needed. There could be recursive folders and files under collector, which we do not restrict yet.

Comment thread tools/integration/src/utils.ts Outdated
readmeContent += `
## Collector

Below are the collector configurations that are currently supported by this integration package.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the "collector configurations" mean?

Comment thread tools/integration/src/utils.ts Outdated
const targetDir = path.join(packagePath, 'collector');

// Dockerfile
const dockerfileContent = `# Multi-stage build for Python collector

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of inlining these template files into CLI, we probably need to put them in a separate place.

@disha-148
disha-148 changed the base branch from main to fi-features May 19, 2026 15:27
@disha-148
disha-148 merged commit d0551de into instana:fi-features May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants