Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[add] topic for SLS sink #32

Merged
merged 2 commits into from
Aug 29, 2019
Merged

Conversation

shabicheng
Copy link

No description provided.

@codecov-io
Copy link

codecov-io commented Aug 29, 2019

Codecov Report

Merging #32 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #32   +/-   ##
=======================================
  Coverage   55.74%   55.74%           
=======================================
  Files          21       21           
  Lines        1261     1261           
=======================================
  Hits          703      703           
  Misses        496      496           
  Partials       62       62

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14af15b...f7f3cf2. Read the comment docs.

sinks/sls/sls.go Outdated
@@ -84,7 +85,8 @@ func (s *SLSSink) ExportEvents(batch *core.EventBatch) {
Project: s.Project,
LogStore: s.LogStore,
LogItems: sls.LogGroup{
Logs: logs,
Logs: logs,
Topic: &s.Config.topic,
Copy link
Member

Choose a reason for hiding this comment

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

如果没有Topic设置需要增加判断,不然会出下空指针

@ringtail ringtail merged commit d6c8542 into AliyunContainerService:master Aug 29, 2019
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.

3 participants